Package org.conscrypt.ct
Class DigitallySigned
- java.lang.Object
-
- org.conscrypt.ct.DigitallySigned
-
public class DigitallySigned extends Object
DigitallySigned structure, as defined by RFC5246 Section 4.7.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDigitallySigned.HashAlgorithmstatic classDigitallySigned.SignatureAlgorithm
-
Constructor Summary
Constructors Constructor Description DigitallySigned(int hashAlgorithm, int signatureAlgorithm, byte[] signature)DigitallySigned(DigitallySigned.HashAlgorithm hashAlgorithm, DigitallySigned.SignatureAlgorithm signatureAlgorithm, byte[] signature)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DigitallySigneddecode(byte[] input)Decode a TLS encoded DigitallySigned structure.static DigitallySigneddecode(InputStream input)Decode a TLS encoded DigitallySigned structure.StringgetAlgorithm()Get the name of the hash and signature combination.DigitallySigned.HashAlgorithmgetHashAlgorithm()byte[]getSignature()DigitallySigned.SignatureAlgorithmgetSignatureAlgorithm()
-
-
-
Constructor Detail
-
DigitallySigned
public DigitallySigned(DigitallySigned.HashAlgorithm hashAlgorithm, DigitallySigned.SignatureAlgorithm signatureAlgorithm, byte[] signature)
-
DigitallySigned
public DigitallySigned(int hashAlgorithm, int signatureAlgorithm, byte[] signature)
-
-
Method Detail
-
getHashAlgorithm
public DigitallySigned.HashAlgorithm getHashAlgorithm()
-
getSignatureAlgorithm
public DigitallySigned.SignatureAlgorithm getSignatureAlgorithm()
-
getSignature
public byte[] getSignature()
-
getAlgorithm
public String 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
public static DigitallySigned decode(InputStream input) throws SerializationException
Decode a TLS encoded DigitallySigned structure.- Throws:
SerializationException
-
decode
public static DigitallySigned decode(byte[] input) throws SerializationException
Decode a TLS encoded DigitallySigned structure.- Throws:
SerializationException
-
-