Example usage for org.bouncycastle.asn1.cmp RevRepContent getCrls

List of usage examples for org.bouncycastle.asn1.cmp RevRepContent getCrls

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.cmp RevRepContent getCrls.

Prototype

public CertificateList[] getCrls() 

Source Link

Usage

From source file:org.cryptable.pki.communication.PKICMPMessages.java

License:Open Source License

X509CRL processRevocation(PKIBody pkiBody) throws CRLException {
    JcaX509CRLConverter jcaX509CRLConverter = new JcaX509CRLConverter();

    RevRepContent revRepContent = RevRepContent.getInstance(pkiBody.getContent());

    return jcaX509CRLConverter.getCRL(new X509CRLHolder(revRepContent.getCrls()[0]));
}