Package org.keycloak.truststore
Class FileTruststoreProvider
java.lang.Object
org.keycloak.truststore.FileTruststoreProvider
- All Implemented Interfaces:
Provider,TruststoreProvider
- Author:
- Marko Strukelj
-
Constructor Summary
ConstructorsConstructorDescriptionFileTruststoreProvider(KeyStore truststore, HostnameVerificationPolicy policy, Map<X500Principal, List<X509Certificate>> rootCertificates, Map<X500Principal, List<X509Certificate>> intermediateCertificates, KeyStore httpsTruststore, Map<X500Principal, List<X509Certificate>> httpsRootCertificates, Map<X500Principal, List<X509Certificate>> httpsIntermediateCertificates) -
Method Summary
-
Constructor Details
-
FileTruststoreProvider
public FileTruststoreProvider(KeyStore truststore, HostnameVerificationPolicy policy, Map<X500Principal, List<X509Certificate>> rootCertificates, Map<X500Principal, List<X509Certificate>> intermediateCertificates, KeyStore httpsTruststore, Map<X500Principal, List<X509Certificate>> httpsRootCertificates, Map<X500Principal, List<X509Certificate>> httpsIntermediateCertificates)
-
-
Method Details
-
getPolicy
- Specified by:
getPolicyin interfaceTruststoreProvider
-
getSSLSocketFactory
- Specified by:
getSSLSocketFactoryin interfaceTruststoreProvider
-
getTruststore
- Specified by:
getTruststorein interfaceTruststoreProvider
-
getHttpsTruststore
Description copied from interface:TruststoreProviderReturns the truststore used for mTLS- Specified by:
getHttpsTruststorein interfaceTruststoreProvider- Returns:
- The mTLS truststore
-
getHttpsRootCertificates
- Specified by:
getHttpsRootCertificatesin interfaceTruststoreProvider
-
getHttpsIntermediateCertificates
- Specified by:
getHttpsIntermediateCertificatesin interfaceTruststoreProvider
-
getRootCertificates
- Specified by:
getRootCertificatesin interfaceTruststoreProvider- Returns:
- root certificates from the configured truststore as a map where the key is the X500Principal of the corresponding X509Certificate
-
getIntermediateCertificates
- Specified by:
getIntermediateCertificatesin interfaceTruststoreProvider- Returns:
- intermediate certificates from the configured truststore as a map where the key is the X500Principal of the corresponding X509Certificate
-
close
public void close()
-