|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schwering.irc.lib.ssl.SSLDefaultTrustManager
The default TrustManager
of the
SSLIRCConnection
.
It automatically accepts the X509 certificate.
In many cases you should change the SSLIRCConnection
's
SSLTrustManager
. For examle if you write an IRC client for human
users, you may want to ask the user whether he accepts the server's
certificate or not.
SSLIRCConnection
,
SSLTrustManager
Constructor Summary | |
SSLDefaultTrustManager()
|
Method Summary | |
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Returns the accepted certificates. |
boolean |
isTrusted(java.security.cert.X509Certificate[] chain)
Trusts the complete certificate chain and returns true . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SSLDefaultTrustManager()
Method Detail |
public boolean isTrusted(java.security.cert.X509Certificate[] chain)
true
.
isTrusted
in interface SSLTrustManager
chain
- The peer certificate chain.
true
.public java.security.cert.X509Certificate[] getAcceptedIssuers()
checkServerTrusted
method.
getAcceptedIssuers
in interface SSLTrustManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |