Package org.bouncycastle.tls
Class DigitallySigned
- java.lang.Object
-
- org.bouncycastle.tls.DigitallySigned
-
public final class DigitallySigned extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream output)Encode thisDigitallySignedto anOutputStream.SignatureAndHashAlgorithmgetAlgorithm()byte[]getSignature()static DigitallySignedparse(TlsContext context, java.io.InputStream input)Parse aDigitallySignedfrom anInputStream.
-
-
-
Constructor Detail
-
DigitallySigned
public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
-
-
Method Detail
-
getAlgorithm
public SignatureAndHashAlgorithm getAlgorithm()
- Returns:
- a
SignatureAndHashAlgorithm(or null before TLS 1.2).
-
getSignature
public byte[] getSignature()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionEncode thisDigitallySignedto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static DigitallySigned parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Parse aDigitallySignedfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
DigitallySignedobject. - Throws:
java.io.IOException
-
-