Class DigitallySigned
- java.lang.Object
-
- dev.sigstore.encryption.certificates.transparency.DigitallySigned
-
public class DigitallySigned extends java.lang.ObjectDigitallySigned 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(java.io.InputStream input)Decode a TLS encoded DigitallySigned structure.java.lang.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 java.lang.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(java.io.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
-
-