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

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

Introduction

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

Prototype

public byte[] getIssuerNameHash() 

Source Link

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());
}