Example usage for org.bouncycastle.cert.ocsp OCSPResp hashCode

List of usage examples for org.bouncycastle.cert.ocsp OCSPResp hashCode

Introduction

In this page you can find the example usage for org.bouncycastle.cert.ocsp OCSPResp hashCode.

Prototype

public int hashCode() 

Source Link

Usage

From source file:ee.ria.xroad.common.ocsp.OcspVerifier.java

License:Open Source License

private synchronized SingleResp verifyResponseValidityCached(OCSPResp response, X509Certificate subject,
        X509Certificate issuer) throws Exception {
    String key = SINGLE_RESP + response.hashCode() + subject.hashCode() + issuer.hashCode();
    if (!CACHE.isValid(key)) {
        CACHE.setValue(key, verifyResponseValidity(response, subject, issuer));
    }//from  ww w . ja v  a2s. c o m

    return (SingleResp) CACHE.getValue(key);
}