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 enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DigitallySigned.HashAlgorithmprivate 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 DigitallySigneddecode(byte[] input) Decode a TLS encoded DigitallySigned structure.static DigitallySigneddecode(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
-