Example usage for org.bouncycastle.cert.ocsp.jcajce JcaCertificateID getSerialNumber

List of usage examples for org.bouncycastle.cert.ocsp.jcajce JcaCertificateID getSerialNumber

Introduction

In this page you can find the example usage for org.bouncycastle.cert.ocsp.jcajce JcaCertificateID getSerialNumber.

Prototype

public BigInteger getSerialNumber() 

Source Link

Document

return the serial number for the certificate associated with this request.

Usage

From source file:org.keycloak.common.util.OCSPUtils.java

License:Apache License

private static boolean compareCertIDs(JcaCertificateID idLeft, CertificateID idRight) {
    if (idLeft == idRight)
        return true;
    if (idLeft == null || idRight == null)
        return false;

    return Arrays.equals(idLeft.getIssuerKeyHash(), idRight.getIssuerKeyHash())
            && Arrays.equals(idLeft.getIssuerNameHash(), idRight.getIssuerNameHash())
            && idLeft.getSerialNumber().equals(idRight.getSerialNumber());
}