Package org.keycloak.truststore
Class FileTruststoreProvider
java.lang.Object
org.keycloak.truststore.FileTruststoreProvider
- All Implemented Interfaces:
Provider
,TruststoreProvider
- Author:
- Marko Strukelj
-
Constructor Summary
ConstructorDescriptionFileTruststoreProvider
(KeyStore truststore, HostnameVerificationPolicy policy, Map<X500Principal, List<X509Certificate>> rootCertificates, Map<X500Principal, List<X509Certificate>> intermediateCertificates) -
Method Summary
-
Constructor Details
-
FileTruststoreProvider
public FileTruststoreProvider(KeyStore truststore, HostnameVerificationPolicy policy, Map<X500Principal, List<X509Certificate>> rootCertificates, Map<X500Principal, List<X509Certificate>> intermediateCertificates)
-
-
Method Details
-
getPolicy
- Specified by:
getPolicy
in interfaceTruststoreProvider
-
getSSLSocketFactory
- Specified by:
getSSLSocketFactory
in interfaceTruststoreProvider
-
getTruststore
- Specified by:
getTruststore
in interfaceTruststoreProvider
-
getRootCertificates
- Specified by:
getRootCertificates
in interfaceTruststoreProvider
- Returns:
- root certificates from the configured truststore as a map where the key is the X500Principal of the corresponding X509Certificate
-
getIntermediateCertificates
- Specified by:
getIntermediateCertificates
in 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()
-