Package no.digipost.security.ocsp
Class OcspLookup
- java.lang.Object
-
- no.digipost.security.ocsp.OcspLookup
-
public final class OcspLookup extends Object
Online Certificate Status Protocol (OCSP) is an automated certificate checking network protocol. One can query an OCSP responder for the status of a certificate. The responder returns whether the certificate is still trusted by the CA that issued it.
-
-
Field Summary
Fields Modifier and Type Field Description org.bouncycastle.cert.ocsp.CertificateIDcertificateIdURIuri
-
Constructor Summary
Constructors Constructor Description OcspLookup(OcspLookupRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OcspResultexecuteUsing(org.apache.http.impl.client.CloseableHttpClient client)Execute the OCSP lookup request.StringtoString()
-
-
-
Field Detail
-
uri
public final URI uri
-
certificateId
public final org.bouncycastle.cert.ocsp.CertificateID certificateId
-
-
Constructor Detail
-
OcspLookup
public OcspLookup(OcspLookupRequest request)
-
-
Method Detail
-
executeUsing
public OcspResult executeUsing(org.apache.http.impl.client.CloseableHttpClient client)
Execute the OCSP lookup request.- Parameters:
client- the http client to use for executing the lookup request.- Returns:
- the
resultof the OCSP lookup.
-
-