public class SignatureAndHashAlgorithm
extends java.lang.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(java.io.OutputStream output)
Encode this
SignatureAndHashAlgorithm to an OutputStream . |
boolean |
equals(java.lang.Object obj) |
short |
getHash() |
short |
getSignature() |
int |
hashCode() |
static SignatureAndHashAlgorithm |
parse(java.io.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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void encode(java.io.OutputStream output) throws java.io.IOException
SignatureAndHashAlgorithm
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static SignatureAndHashAlgorithm parse(java.io.InputStream input) throws java.io.IOException
SignatureAndHashAlgorithm
from an InputStream
.input
- the InputStream
to parse from.SignatureAndHashAlgorithm
object.java.io.IOException