Package org.bouncycastle.tls
Class DigitallySigned
java.lang.Object
org.bouncycastle.tls.DigitallySigned
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream output) Encode thisDigitallySignedto anOutputStream.byte[]static DigitallySignedparse(TlsContext context, InputStream input) Parse aDigitallySignedfrom anInputStream.
-
Constructor Details
-
DigitallySigned
-
-
Method Details
-
getAlgorithm
- Returns:
- a
SignatureAndHashAlgorithm(or null before TLS 1.2).
-
getSignature
public byte[] getSignature() -
encode
Encode thisDigitallySignedto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aDigitallySignedfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
DigitallySignedobject. - Throws:
IOException
-