Top Fields Constructors Methods
org.bouncycastle.tls

public final Class DigitallySigned

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream

Field Summary

Modifier and TypeField and Description
private final SignatureAndHashAlgorithm
private final byte[]

Constructor Summary

AccessConstructor and Description
public
DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)

Method Summary

Modifier and TypeMethod and Description
public void
encode(OutputStream
the OutputStream to encode to.
output
)

Encode this DigitallySigned to an OutputStream.

public SignatureAndHashAlgorithm

Returns:

a SignatureAndHashAlgorithm (or null before TLS 1.2).
getAlgorithm
()

public byte[]
public static DigitallySigned

Returns:

a DigitallySigned object.
parse
(TlsContext
the TlsContext of the current connection.
context
,
InputStream
the InputStream to parse from.
input
)

Parse a DigitallySigned from an InputStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
private final SignatureAndHashAlgorithm algorithm
signatureback to summary
private final byte[] signature

Constructor Detail

DigitallySignedback to summary
public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)

Method Detail

encodeback to summary
public void encode(OutputStream output) throws IOException

Encode this DigitallySigned to an OutputStream.

Parameters
output:OutputStream

the OutputStream to encode to.

getAlgorithmback to summary
public SignatureAndHashAlgorithm getAlgorithm()
Returns:SignatureAndHashAlgorithm

a SignatureAndHashAlgorithm (or null before TLS 1.2).

getSignatureback to summary
public byte[] getSignature()
parseback to summary
public static DigitallySigned parse(TlsContext context, InputStream input) throws IOException

Parse a DigitallySigned from an InputStream.

Parameters
context:TlsContext

the TlsContext of the current connection.

input:InputStream

the InputStream to parse from.

Returns:DigitallySigned

a DigitallySigned object.