|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.util.SimpleTrustManager
public class SimpleTrustManager
This sub_class implements the X509TrustManager interface. MyTrustManager trusts known certificate chains, and queries the user to approve unknown chains. It will add trusted chains to the keystore. This class is provided as an example implementation. Depending upon the calling application, it is likely that this would be reimplemented to graphically display and prompt for data. Set the property com.echomine.util.SimpleTrustManager.prompt to "true" (default is "false") if you want the class to prompt for acceptance.
Constructor Summary | |
---|---|
SimpleTrustManager(java.security.KeyStore keyStore,
java.lang.String keyStorePath,
char[] keyStorePassword)
SimpleTrustManager constructor. |
Method Summary | |
---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
isClientTrusted checks to see if the chain is in the keyStore object. |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
checks to see if the chain is in the keyStore object. |
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTrustManager(java.security.KeyStore keyStore, java.lang.String keyStorePath, char[] keyStorePassword)
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.X509TrustManager
java.security.cert.CertificateException
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
java.security.cert.CertificateException
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 |