Package org.conscrypt.ct
Class DigitallySigned
- java.lang.Object
-
- org.conscrypt.ct.DigitallySigned
-
@Internal public class DigitallySigned extends java.lang.Object
DigitallySigned structure, as defined by RFC5246 Section 4.7.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DigitallySigned.HashAlgorithm
static class
DigitallySigned.SignatureAlgorithm
-
Field Summary
Fields Modifier and Type Field Description private DigitallySigned.HashAlgorithm
hashAlgorithm
private byte[]
signature
private DigitallySigned.SignatureAlgorithm
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 DigitallySigned
decode(byte[] input)
Decode a TLS encoded DigitallySigned structure.static DigitallySigned
decode(java.io.InputStream input)
Decode a TLS encoded DigitallySigned structure.java.lang.String
getAlgorithm()
Get the name of the hash and signature combination.DigitallySigned.HashAlgorithm
getHashAlgorithm()
byte[]
getSignature()
DigitallySigned.SignatureAlgorithm
getSignatureAlgorithm()
-
-
-
Field Detail
-
hashAlgorithm
private final DigitallySigned.HashAlgorithm hashAlgorithm
-
signatureAlgorithm
private final DigitallySigned.SignatureAlgorithm signatureAlgorithm
-
signature
private final byte[] signature
-
-
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
-
-