|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wikibooks.en.wiki.WebObjects.Web_Services.How_to_Trust_Any_SSL_Certificate._FakeX509TrustManager
FakeX509TrustManager
.
public class _FakeX509TrustManager
This class allow any X509 certificates to be used to authenticate the remote side of a secure socket, including self-signed certificates. This class uses the old deprecated API from the com.sun.ssl package.
Constructor Summary | |
---|---|
_FakeX509TrustManager()
Deprecated. |
Method Summary | |
---|---|
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Deprecated. Return an empty array of certificate authority certificates which are trusted for authenticating peers. |
boolean |
isClientTrusted(java.security.cert.X509Certificate[] chain)
Deprecated. Always return true, trusting for client SSL chain peer certificate chain. |
boolean |
isServerTrusted(java.security.cert.X509Certificate[] chain)
Deprecated. Always return true, trusting for server SSL chain peer certificate chain. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public _FakeX509TrustManager()
Method Detail |
---|
public boolean isClientTrusted(java.security.cert.X509Certificate[] chain)
isClientTrusted
in interface com.sun.net.ssl.X509TrustManager
chain
- the peer certificate chain.
public boolean isServerTrusted(java.security.cert.X509Certificate[] chain)
isServerTrusted
in interface com.sun.net.ssl.X509TrustManager
chain
- the peer certificate chain.
public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface com.sun.net.ssl.X509TrustManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |