Package org.bouncycastle.tls
Class CertificateVerify
java.lang.Object
org.bouncycastle.tls.CertificateVerify
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisCertificateVerify
to anOutputStream
.int
byte[]
static CertificateVerify
parse
(TlsContext context, InputStream input) Parse aCertificateVerify
from anInputStream
.
-
Constructor Details
-
CertificateVerify
public CertificateVerify(int algorithm, byte[] signature)
-
-
Method Details
-
getAlgorithm
public int getAlgorithm()- Returns:
- the algorithm (a signature scheme)
- See Also:
-
getSignature
public byte[] getSignature() -
encode
Encode thisCertificateVerify
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aCertificateVerify
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
CertificateVerify
object. - Throws:
IOException
-