Package org.keycloak.truststore
Class FileTruststoreProvider
- java.lang.Object
-
- org.keycloak.truststore.FileTruststoreProvider
-
- All Implemented Interfaces:
Provider
,TruststoreProvider
public class FileTruststoreProvider extends Object implements TruststoreProvider
- Author:
- Marko Strukelj
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Map<X500Principal,X509Certificate>
getIntermediateCertificates()
HostnameVerificationPolicy
getPolicy()
Map<X500Principal,X509Certificate>
getRootCertificates()
SSLSocketFactory
getSSLSocketFactory()
KeyStore
getTruststore()
-
-
-
Method Detail
-
getPolicy
public HostnameVerificationPolicy getPolicy()
- Specified by:
getPolicy
in interfaceTruststoreProvider
-
getSSLSocketFactory
public SSLSocketFactory getSSLSocketFactory()
- Specified by:
getSSLSocketFactory
in interfaceTruststoreProvider
-
getTruststore
public KeyStore getTruststore()
- Specified by:
getTruststore
in interfaceTruststoreProvider
-
getRootCertificates
public Map<X500Principal,X509Certificate> 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
public Map<X500Principal,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
-
-