Example usage for org.bouncycastle.asn1.ocsp CertID equals

List of usage examples for org.bouncycastle.asn1.ocsp CertID equals

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.ocsp CertID equals.

Prototype

public boolean equals(Object o) 

Source Link

Usage

From source file:org.jruby.ext.openssl.OCSPBasicResponse.java

License:Common Public License

@JRubyMethod(name = "find_response")
public IRubyObject find_response(final ThreadContext context, IRubyObject certId) {
    if (certId.isNil())
        return context.nil;
    OCSPCertificateId rubyCertId = (OCSPCertificateId) certId;
    IRubyObject retResp = context.nil;// www. j  a v  a  2 s  . c  o  m
    for (OCSPSingleResponse singleResp : singleResponses) {
        CertID thisId = rubyCertId.getCertID();
        CertID thatId = singleResp.getBCSingleResp().getCertID();
        if (thisId.equals(thatId)) {
            retResp = singleResp;
            break;
        }
    }

    return retResp;
}