Package org.xipki.security.ctlog
Class CtLog
- java.lang.Object
-
- org.xipki.security.ctlog.CtLog
-
public class CtLog extends Object
RFC 6962 implementation of the required classes for the extension SCT in certificate.- Author:
- Lijun Liao (xipki)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCtLog.DigitallySignedstruct { SignatureAndHashAlgorithm algorithm; opaque signature<0..2^16-1>; } DigitallySigned;static classCtLog.HashAlgorithmstatic classCtLog.SerializedSCTopaque SerializedSCT<1..2^16-1>;static classCtLog.SignatureAlgorithmstatic classCtLog.SignatureAndHashAlgorithmASN.1 definition:static classCtLog.SignedCertificateTimestampASN1.static classCtLog.SignedCertificateTimestampListstruct { SerializedSCT sct_list <1..2^16-1>; } SignedCertificateTimestampList;
-
Constructor Summary
Constructors Constructor Description CtLog()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]getPreCertTbsCert(org.bouncycastle.asn1.x509.TBSCertificate tbsCert)static voidupdate(Signature sig, byte version, long timestamp, byte[] sctExtensions, byte[] issuerKeyHash, byte[] preCertTbsCert)
-
-
-
Method Detail
-
update
public static void update(Signature sig, byte version, long timestamp, byte[] sctExtensions, byte[] issuerKeyHash, byte[] preCertTbsCert) throws SignatureException
- Throws:
SignatureException
-
getPreCertTbsCert
public static byte[] getPreCertTbsCert(org.bouncycastle.asn1.x509.TBSCertificate tbsCert) throws IOException- Throws:
IOException
-
-