|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.client.TrustAnyTrustManager
public final class TrustAnyTrustManager
This TrustManager applies no logic as to whether its peer certificate is trusted; it trusts all peers. This is a security risk, and should be used only for convenience in testing or where security is explicitly not an issue.
Method Summary | |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
WARNING: does nothing; all clients are always trusted. |
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
WARNING: does nothing; all servers are always trusted. |
X509Certificate[] |
getAcceptedIssuers()
|
static TrustAnyTrustManager |
getInstance()
Get an instance; only one is ever created. |
static TrustAnyTrustManager[] |
getInstanceArray()
Calls getInstance() and returns an array containing it. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static TrustAnyTrustManager getInstance()
public static TrustAnyTrustManager[] getInstanceArray()
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted
in interface X509TrustManager
CertificateException
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
CertificateException
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
public String toString()
toString
in class Object
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.