Search in sources :

Example 1 with X509CRLObject

use of com.github.zhenwei.provider.jce.provider.X509CRLObject in project LinLong-Java by zhenwei1108.

the class X509V2CRLGenerator method generateJcaObject.

private X509CRL generateJcaObject(TBSCertList tbsCrl, byte[] signature) throws CRLException {
    ASN1EncodableVector v = new ASN1EncodableVector();
    v.add(tbsCrl);
    v.add(sigAlgId);
    v.add(new DERBitString(signature));
    return new X509CRLObject(CertificateList.getInstance(new DERSequence(v)));
}
Also used : X509CRLObject(com.github.zhenwei.provider.jce.provider.X509CRLObject) DERSequence(com.github.zhenwei.core.asn1.DERSequence) ASN1EncodableVector(com.github.zhenwei.core.asn1.ASN1EncodableVector) DERBitString(com.github.zhenwei.core.asn1.DERBitString)

Aggregations

ASN1EncodableVector (com.github.zhenwei.core.asn1.ASN1EncodableVector)1 DERBitString (com.github.zhenwei.core.asn1.DERBitString)1 DERSequence (com.github.zhenwei.core.asn1.DERSequence)1 X509CRLObject (com.github.zhenwei.provider.jce.provider.X509CRLObject)1