public class SSLDefaultTrustManager extends java.lang.Object implements SSLTrustManager
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| Modifier and Type | Field and Description |
|---|---|
protected java.security.cert.X509Certificate[] |
accepted
The
X509Certificates which are accepted. |
| Constructor and Description |
|---|
SSLDefaultTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Returns the accepted certificates.
|
boolean |
isTrusted(java.security.cert.X509Certificate[] chain)
Trusts the complete certificate chain and returns
true. |
protected java.security.cert.X509Certificate[] accepted
X509Certificates which are accepted.public boolean isTrusted(java.security.cert.X509Certificate[] chain)
true.isTrusted in interface SSLTrustManagerchain - The peer certificate chain.true.public java.security.cert.X509Certificate[] getAcceptedIssuers()
checkServerTrusted method.getAcceptedIssuers in interface SSLTrustManager