|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.net.ssl.AcceptAnyCertTrustManager
public class AcceptAnyCertTrustManager
Implements a relaxed trust manager which accepts any SSL certificate.
| Constructor Summary | |
|---|---|
AcceptAnyCertTrustManager()
Create relaxed trust manager. |
|
| Method Summary | |
|---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Check if a client certificate is trusted. |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
Check if a server certificate is trusted. |
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
Return valid certificate issuers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AcceptAnyCertTrustManager()
| Method Detail |
|---|
public void checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
checkClientTrusted in interface javax.net.ssl.X509TrustManagerchain - Peer certificate chain.authType - Authentication type based upon the client
certificate.
java.lang.IllegalArgumentException - Not thrown here since we accept anything.
java.security.cert.CertificateException - Not thrown here since we accept anything.
public void checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
throws java.security.cert.CertificateException
checkServerTrusted in interface javax.net.ssl.X509TrustManagerchain - Peer certificate chain.authType - Authentication type based upon the client
certificate.
java.security.cert.CertificateException - No thrown here since we accept anything.
Since we accept any certificate, we just return without checking the validity of the certificate in any way.
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 | ||||||||