|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schwering.irc.lib.ssl.SSLDefaultTrustManager
public class 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
Field Summary | |
---|---|
protected java.security.cert.X509Certificate[] |
accepted
The X509Certificate s which are accepted. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.security.cert.X509Certificate[] accepted
X509Certificate
s which are accepted.
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 |