public class DigitallySigned extends Object
Modifier and Type | Field and Description |
---|---|
protected SignatureAndHashAlgorithm |
algorithm |
protected byte[] |
signature |
Constructor and Description |
---|
DigitallySigned(SignatureAndHashAlgorithm algorithm,
byte[] signature) |
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encode this
DigitallySigned to an OutputStream . |
SignatureAndHashAlgorithm |
getAlgorithm() |
byte[] |
getSignature() |
static DigitallySigned |
parse(TlsContext context,
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(OutputStream output) throws IOException
DigitallySigned
to an OutputStream
.output
- the OutputStream
to encode to.IOException
public static DigitallySigned parse(TlsContext context, InputStream input) throws IOException
DigitallySigned
from an InputStream
.context
- the TlsContext
of the current connection.input
- the InputStream
to parse from.DigitallySigned
object.IOException