public class SignatureAndHashAlgorithm extends Object
Modifier and Type | Field and Description |
---|---|
protected short |
hash |
protected short |
signature |
Constructor and Description |
---|
SignatureAndHashAlgorithm(short hash,
short signature) |
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encode this
SignatureAndHashAlgorithm to an OutputStream . |
boolean |
equals(Object obj) |
short |
getHash() |
short |
getSignature() |
int |
hashCode() |
static SignatureAndHashAlgorithm |
parse(InputStream input)
Parse a
SignatureAndHashAlgorithm from an InputStream . |
public SignatureAndHashAlgorithm(short hash, short signature)
hash
- HashAlgorithm
signature
- SignatureAlgorithm
public short getHash()
HashAlgorithm
public short getSignature()
SignatureAlgorithm
public void encode(OutputStream output) throws IOException
SignatureAndHashAlgorithm
to an OutputStream
.output
- the OutputStream
to encode to.IOException
public static SignatureAndHashAlgorithm parse(InputStream input) throws IOException
SignatureAndHashAlgorithm
from an InputStream
.input
- the InputStream
to parse from.SignatureAndHashAlgorithm
object.IOException
Copyright © 2017 BouncyCastle.org. All rights reserved.