public class OCSPResponseBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getAIALocations(X509Certificate userCertificate)
List Certificate authority url information.
|
static List<X509Certificate> |
getCertInfo(SSLConfig sslConfig) |
static KeyStore |
getKeyStore(File keyStoreFile,
String keyStorePassword,
String tlsStoreType)
Method to create a keystore and return.
|
static org.bouncycastle.cert.ocsp.OCSPResp |
getOCSPResponse(List<String> locations,
org.bouncycastle.cert.ocsp.OCSPReq request,
X509Certificate userCertificate,
OCSPCache ocspCache)
Get OCSP response from cache.
|
public static KeyStore getKeyStore(File keyStoreFile, String keyStorePassword, String tlsStoreType) throws IOException
keyStoreFile - keyStore filekeyStorePassword - keyStore passwordtlsStoreType - PKCS12IOException - Occurs if it fails to create the keystore.public static List<String> getAIALocations(X509Certificate userCertificate) throws CertificateVerificationException
userCertificate - User's own certificate.CertificateVerificationException - If an error occurs while getting the AIA locations from the certificate.public static org.bouncycastle.cert.ocsp.OCSPResp getOCSPResponse(List<String> locations, org.bouncycastle.cert.ocsp.OCSPReq request, X509Certificate userCertificate, OCSPCache ocspCache) throws CertificateVerificationException
locations - CA locationsrequest - OCSP requestuserCertificate - User's certificateocspCache - cache to store ocsp responsesCertificateVerificationException - If an error occurs while getting the response.public static List<X509Certificate> getCertInfo(SSLConfig sslConfig) throws CertificateException, IOException
CertificateExceptionIOExceptionCopyright © 2021 WSO2. All rights reserved.