javax.net.ssl.TrustManager
, javax.net.ssl.X509TrustManager
class 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.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.NoSuchProviderException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
java.security.cert.CertificateException
java.io.IOException
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
chain
- The client's certificate chainauthType
- authorization type (e.g. "RSA" or "DHE_DSS")java.security.cert.CertificateException
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
chain
- The server's certificate chainauthType
- authorization type (e.g. "RSA" or "DHE_DSS")java.security.cert.CertificateException
public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.