Interface TrustManagerFactory
public interface TrustManagerFactory
A factory that can create
TrustManager objects.- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.createUsingConfiguredTrustStores(boolean verifyHostname, String hostname) Create aTrustManager, that uses trust anchors configured on the server.createUsingDefaultTrustStores(boolean verifyHostname, String hostname) Create aTrustManager, that uses trust anchors configured in the system (cacerts).
-
Method Details
-
create
Deprecated.UsecreateUsingConfiguredTrustStores(boolean, String)createUsingConfiguredTrustStores} insteadCreate aTrustManager, that uses trust anchors configured on the server.- Parameters:
verifyHostname- Should hostname be verified against the certificate.hostname- Hostname to be verified. Ignored ifverifyHostname == false.- Returns:
- An instance of
TrustManager
-
createUsingConfiguredTrustStores
Create aTrustManager, that uses trust anchors configured on the server.- Parameters:
verifyHostname- Should hostname be verified against the certificate.hostname- Hostname to be verified. Ignored ifverifyHostname == false.- Returns:
- An instance of
TrustManager - Since:
- 4.0.0
-
createUsingDefaultTrustStores
Create aTrustManager, that uses trust anchors configured in the system (cacerts).- Parameters:
verifyHostname- Should hostname be verified against the certificate.hostname- Hostname to be verified. Ignored ifverifyHostname == false.- Returns:
- An instance of
TrustManager - Since:
- 4.0.0
-
createUsingConfiguredTrustStores(boolean, String)createUsingConfiguredTrustStores} instead