|
||||||||||
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
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.
Constructor Summary | |
---|---|
FakeX509TrustManager()
|
Method Summary | |
---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Always trust for client SSL chain peer certificate chain with any authType authentication types. |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Always trust for server SSL chain peer certificate chain with any authType exchange algorithm types. |
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Return an empty array of certificate authority certificates which are trusted for authenticating peers. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeX509TrustManager()
Method Detail |
---|
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
chain
- the peer certificate chain.authType
- the authentication type based on the client certificate.public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
chain
- the peer certificate chain.authType
- the key exchange algorithm used.public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |