|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.client.net.NaiveTrustManager
public class NaiveTrustManager
This is a naive trust manager we use when we don't want server authentication. Any certificate will be accepted.
| Field Summary | |
|---|---|
private static javax.net.ssl.TrustManager[] |
thisManager
|
| Constructor Summary | |
|---|---|
private |
NaiveTrustManager()
We don't want more than one instence of this TrustManager |
| Method Summary | |
|---|---|
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. |
static javax.net.SocketFactory |
getSocketFactory()
Generate a socket factory with this trust manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static javax.net.ssl.TrustManager[] thisManager
| Constructor Detail |
|---|
private NaiveTrustManager()
| Method Detail |
|---|
public 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.X509TrustManagerchain - 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.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.X509TrustManager
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||