|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An interface implemented by trust managers. Trust managers decide whether to accept client/server certificates when a secure connection is created.
| Method Summary | |
void |
acceptClientCertificate(SecurityContext peercontext,
SecurityContext remotecontext,
java.security.cert.X509Certificate[] chain,
java.lang.String authtype,
javax.net.ssl.X509TrustManager deftrustman)
Check whether a client certificate should be accepted. |
void |
acceptServerCertificate(SecurityContext peercontext,
SecurityContext remotecontext,
java.security.cert.X509Certificate[] chain,
java.lang.String authtype,
javax.net.ssl.X509TrustManager deftrustman)
Check whether a server certificate should be accepted. |
| Method Detail |
public void acceptClientCertificate(SecurityContext peercontext,
SecurityContext remotecontext,
java.security.cert.X509Certificate[] chain,
java.lang.String authtype,
javax.net.ssl.X509TrustManager deftrustman)
throws java.security.cert.CertificateException
peercontext - the context for the local peer (server)remotecontext - the context for the remote entity (client), or null if unknownchain - the certificate chain received from the clientauthtype - the authorization type for the certificate (e.g. RSA)deftrustman - the default system trust manager
java.security.cert.CertificateException - if the certificate is not accepted
public void acceptServerCertificate(SecurityContext peercontext,
SecurityContext remotecontext,
java.security.cert.X509Certificate[] chain,
java.lang.String authtype,
javax.net.ssl.X509TrustManager deftrustman)
throws java.security.cert.CertificateException
peercontext - the context for the local peer (client)remotecontext - the context for the remote entity (server), or null if unknownchain - the certificate chain received from the clientauthtype - the authorization type for the certificate (e.g. RSA)deftrustman - the default system trust manager
java.security.cert.CertificateException - if the certificate is not accepted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||