List of usage examples for org.bouncycastle.asn1.ocsp CertID equals
public boolean equals(Object o)
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; }