javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManagerclass NaiveTrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager
| Modifier and Type | Field | Description |
|---|---|---|
private static javax.net.ssl.TrustManager[] |
thisManager |
| Modifier | Constructor | Description |
|---|---|---|
private |
NaiveTrustManager() |
We don't want more than one instence of this TrustManager
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
Checks wether the we trust the client.
|
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
Checks wether the we trust the server, which we allways will.
|
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
Return an array of certificate authority certificates which are
trusted for authenticating peers.
|
(package private) static javax.net.SocketFactory |
getSocketFactory() |
Generate a socket factory with this trust manager.
|
private NaiveTrustManager()
static javax.net.SocketFactory getSocketFactory()
throws java.security.NoSuchAlgorithmException,
java.security.KeyManagementException,
java.security.NoSuchProviderException,
java.security.KeyStoreException,
java.security.UnrecoverableKeyException,
java.security.cert.CertificateException,
java.io.IOException
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.NoSuchProviderExceptionjava.security.KeyStoreExceptionjava.security.UnrecoverableKeyExceptionjava.security.cert.CertificateExceptionjava.io.IOExceptionpublic void checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
checkClientTrusted in interface javax.net.ssl.X509TrustManagerchain - The client's certificate chainauthType - authorization type (e.g. "RSA" or "DHE_DSS")java.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
checkServerTrusted in interface javax.net.ssl.X509TrustManagerchain - The server's certificate chainauthType - authorization type (e.g. "RSA" or "DHE_DSS")java.security.cert.CertificateExceptionpublic java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface javax.net.ssl.X509TrustManagerApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.