|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.drda.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.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
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |