|
|||||||||
| 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 X509Certificate[] |
accepted
The X509Certificates which are accepted. |
| Constructor Summary | |
|---|---|
SSLDefaultTrustManager()
|
|
| Method Summary | |
|---|---|
X509Certificate[] |
getAcceptedIssuers()
Returns the accepted certificates. |
boolean |
isTrusted(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 X509Certificate[] accepted
X509Certificates which are accepted.
| Constructor Detail |
|---|
public SSLDefaultTrustManager()
| Method Detail |
|---|
public boolean isTrusted(X509Certificate[] chain)
true.
isTrusted in interface SSLTrustManagerchain - The peer certificate chain.
true.public X509Certificate[] getAcceptedIssuers()
checkServerTrusted method.
getAcceptedIssuers in interface SSLTrustManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||