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 void
encode(java.io.OutputStream output)
Encode thisDigitallySigned
to anOutputStream
.SignatureAndHashAlgorithm
getAlgorithm()
byte[]
getSignature()
static DigitallySigned
parse(TlsContext context, java.io.InputStream input)
Parse aDigitallySigned
from 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.IOException
Encode thisDigitallySigned
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static DigitallySigned parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Parse aDigitallySigned
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
DigitallySigned
object. - Throws:
java.io.IOException
-
-