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 - HashAlgorithmsignature - SignatureAlgorithmpublic short getHash()
HashAlgorithmpublic short getSignature()
SignatureAlgorithmpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void encode(java.io.OutputStream output)
throws java.io.IOException
SignatureAndHashAlgorithm to an OutputStream.output - the OutputStream to encode to.java.io.IOExceptionpublic 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