public class DigitallySigned
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected SignatureAndHashAlgorithm |
algorithm |
|
protected byte[] |
signature |
| Constructor | Description |
|---|---|
DigitallySigned(SignatureAndHashAlgorithm algorithm,
byte[] signature) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
encode(java.io.OutputStream output) |
Encode this
DigitallySigned to an OutputStream. |
SignatureAndHashAlgorithm |
getAlgorithm() |
|
byte[] |
getSignature() |
|
static DigitallySigned |
parse(TlsContext context,
java.io.InputStream input) |
Parse a
DigitallySigned from an InputStream. |
protected SignatureAndHashAlgorithm algorithm
protected byte[] signature
public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
public SignatureAndHashAlgorithm getAlgorithm()
SignatureAndHashAlgorithm (or null before TLS 1.2).public byte[] getSignature()
public void encode(java.io.OutputStream output)
throws java.io.IOException
DigitallySigned to an OutputStream.output - the OutputStream to encode to.java.io.IOExceptionpublic static DigitallySigned parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
DigitallySigned from an InputStream.context - the TlsContext of the current connection.input - the InputStream to parse from.DigitallySigned object.java.io.IOException