Package org.bouncycastle.crypto.tls
Class DigitallySigned
- java.lang.Object
-
- org.bouncycastle.crypto.tls.DigitallySigned
-
public class DigitallySigned extends java.lang.Object
Deprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
-
-
Field Summary
Fields Modifier and Type Field Description protected SignatureAndHashAlgorithm
algorithm
Deprecated.protected byte[]
signature
Deprecated.
-
Constructor Summary
Constructors Constructor Description DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
encode(java.io.OutputStream output)
Deprecated.Encode thisDigitallySigned
to anOutputStream
.SignatureAndHashAlgorithm
getAlgorithm()
Deprecated.byte[]
getSignature()
Deprecated.static DigitallySigned
parse(TlsContext context, java.io.InputStream input)
Deprecated.Parse aDigitallySigned
from anInputStream
.
-
-
-
Field Detail
-
algorithm
protected SignatureAndHashAlgorithm algorithm
Deprecated.
-
signature
protected byte[] signature
Deprecated.
-
-
Constructor Detail
-
DigitallySigned
public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
Deprecated.
-
-
Method Detail
-
getAlgorithm
public SignatureAndHashAlgorithm getAlgorithm()
Deprecated.- Returns:
- a
SignatureAndHashAlgorithm
(or null before TLS 1.2).
-
getSignature
public byte[] getSignature()
Deprecated.
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Deprecated.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
Deprecated.Parse aDigitallySigned
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
DigitallySigned
object. - Throws:
java.io.IOException
-
-