Package org.conscrypt.ct
Class DigitallySigned
java.lang.Object
org.conscrypt.ct.DigitallySigned
DigitallySigned structure, as defined by RFC5246 Section 4.7.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DigitallySigned.HashAlgorithm
private final byte[]
private final DigitallySigned.SignatureAlgorithm
-
Constructor Summary
ConstructorsConstructorDescriptionDigitallySigned
(int hashAlgorithm, int signatureAlgorithm, byte[] signature) DigitallySigned
(DigitallySigned.HashAlgorithm hashAlgorithm, DigitallySigned.SignatureAlgorithm signatureAlgorithm, byte[] signature) -
Method Summary
Modifier and TypeMethodDescriptionstatic DigitallySigned
decode
(byte[] input) Decode a TLS encoded DigitallySigned structure.static DigitallySigned
decode
(InputStream input) Decode a TLS encoded DigitallySigned structure.Get the name of the hash and signature combination.byte[]
-
Field Details
-
hashAlgorithm
-
signatureAlgorithm
-
signature
private final byte[] signature
-
-
Constructor Details
-
DigitallySigned
public DigitallySigned(DigitallySigned.HashAlgorithm hashAlgorithm, DigitallySigned.SignatureAlgorithm signatureAlgorithm, byte[] signature) -
DigitallySigned
public DigitallySigned(int hashAlgorithm, int signatureAlgorithm, byte[] signature)
-
-
Method Details
-
getHashAlgorithm
-
getSignatureAlgorithm
-
getSignature
public byte[] getSignature() -
getAlgorithm
Get the name of the hash and signature combination. The result can be used to as the argument toSignature.getInstance(java.lang.String)
. -
decode
Decode a TLS encoded DigitallySigned structure.- Throws:
SerializationException
-
decode
Decode a TLS encoded DigitallySigned structure.- Throws:
SerializationException
-