Package org.bouncycastle.tls
Class DigitallySigned
java.lang.Object
org.bouncycastle.tls.DigitallySigned
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisDigitallySigned
to anOutputStream
.byte[]
static DigitallySigned
parse
(TlsContext context, InputStream input) Parse aDigitallySigned
from anInputStream
.
-
Constructor Details
-
DigitallySigned
-
-
Method Details
-
getAlgorithm
- Returns:
- a
SignatureAndHashAlgorithm
(or null before TLS 1.2).
-
getSignature
public byte[] getSignature() -
encode
Encode thisDigitallySigned
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aDigitallySigned
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
DigitallySigned
object. - Throws:
IOException
-