Example usage for java.security.cert X509CRL isRevoked

List of usage examples for java.security.cert X509CRL isRevoked

Introduction

In this page you can find the example usage for java.security.cert X509CRL isRevoked.

Prototype

public abstract boolean isRevoked(Certificate cert);

Source Link

Document

Checks whether the given certificate is on this CRL.

Usage

From source file:org.apache.synapse.transport.certificatevalidation.crl.CRLVerifier.java

private RevocationStatus getRevocationStatus(X509CRL x509CRL, X509Certificate peerCert) {
    if (x509CRL.isRevoked(peerCert)) {
        return RevocationStatus.REVOKED;
    } else {//from   ww w  .j  a  v a  2s . c o  m
        return RevocationStatus.GOOD;
    }
}