Package org.keycloak.crypto.fips
Class BCFIPSOCSPProvider
java.lang.Object
org.keycloak.utils.OCSPProvider
org.keycloak.crypto.fips.BCFIPSOCSPProvider
- Since:
- 10/29/2016
- Version:
- $Revision: 1 $
- Author:
- Peter Nalyvayko
-
Nested Class Summary
Nested classes/interfaces inherited from class org.keycloak.utils.OCSPProvider
OCSPProvider.OCSPRevocationStatus, OCSPProvider.RevocationStatus -
Field Summary
Fields inherited from class org.keycloak.utils.OCSPProvider
OCSP_CONNECT_TIMEOUT, TIME_SKEW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OCSPProvider.OCSPRevocationStatuscheck(KeycloakSession session, X509Certificate cert, X509Certificate issuerCertificate, List<URI> responderURIs, X509Certificate responderCert, Date date) Requests certificate revocation status using OCSP.Extracts OCSP responder URI from X509 AIA v3 extension, if available.protected org.bouncycastle.cert.ocsp.OCSPRespgetResponse(KeycloakSession session, org.bouncycastle.cert.ocsp.OCSPReq ocspReq, URI responderUri) Methods inherited from class org.keycloak.utils.OCSPProvider
check, check, check, getEncodedOCSPResponse, unknownStatus
-
Constructor Details
-
BCFIPSOCSPProvider
public BCFIPSOCSPProvider()
-
-
Method Details
-
getResponse
protected org.bouncycastle.cert.ocsp.OCSPResp getResponse(KeycloakSession session, org.bouncycastle.cert.ocsp.OCSPReq ocspReq, URI responderUri) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
check
protected OCSPProvider.OCSPRevocationStatus check(KeycloakSession session, X509Certificate cert, X509Certificate issuerCertificate, List<URI> responderURIs, X509Certificate responderCert, Date date) throws CertPathValidatorException Requests certificate revocation status using OCSP.- Specified by:
checkin classOCSPProvider- Parameters:
cert- the certificate to be checkedissuerCertificate- the issuer certificateresponderURIs- the OCSP responder URIsresponderCert- the OCSP responder certificatedate- if null, the current time is used.- Returns:
- a revocation status
- Throws:
CertPathValidatorException
-
getResponderURIs
Extracts OCSP responder URI from X509 AIA v3 extension, if available. There can be multiple responder URIs encoded in the certificate.- Specified by:
getResponderURIsin classOCSPProvider- Parameters:
cert-- Returns:
- a list of available responder URIs.
- Throws:
CertificateEncodingException
-