public class PromptTrustManager extends Object implements X509TrustManager
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
Determines whether an SSL client with the provided certificate chain should
be trusted.
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
Determines whether an SSL server with the provided certificate chain should
be trusted.
|
X509Certificate[] |
getAcceptedIssuers()
Retrieves the set of certificate authority certificates which are trusted
for authenticating peers.
|
static TrustManager[] |
getTrustManagers()
Retrieves the trust manager array that should be used to initialize an SSL
context in cases where the user should be interactively prompted about
whether to trust the server certificate.
|
public static TrustManager[] getTrustManagers()
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerchain - The certificate chain for the SSL client.authType - The authentication type based on the client certificate.CertificateException - To indicate that the provided client
certificate is not trusted.public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerchain - The certificate chain for the SSL server.authType - The key exchange algorithm used.CertificateException - If the user rejects the certificate.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.