|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractServerTrustManager
Partial implementation of JSSE.ServerTrustManager which has an implementation for storing the certificate in a KeyStore. Subclasses must override the promptUserForTrust method. Shared by the BPE and console. Each has their own implementation since each requires a different means to prompt the user.
Constructor Summary | |
protected |
AbstractServerTrustManager()
Constructs a AbstractServerTrustManager, placing the keystore in the default location ~/idmgr/.keystore and the default password "changeit". |
protected |
AbstractServerTrustManager(java.io.File keystoreFile,
java.lang.String keystorePass)
Constructs a AbstractServerTrustManager. |
Method Summary | |
protected static java.lang.String |
getCertificateFingerprint(java.security.cert.X509Certificate cert)
Convenient method for subclasses to use to get a colon-separated MD5 hash of the certificate for the purpose of displaying to the user. |
boolean |
isServerTrusted(JSSE.ServerTrustManager parent,
java.security.cert.X509Certificate[] cert,
java.lang.String authType)
Default implementation which first checks if parent trusts the certificate. |
protected abstract boolean |
promptUserForTrust(java.security.cert.X509Certificate cert)
Subclasses must implement this method to prompt the user for whether they trust the certificate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractServerTrustManager()
protected AbstractServerTrustManager(java.io.File keystoreFile, java.lang.String keystorePass)
keystoreFile
- The location of the keystorekeystorePass
- The password for the keystore.Method Detail |
public boolean isServerTrusted(JSSE.ServerTrustManager parent, java.security.cert.X509Certificate[] cert, java.lang.String authType)
isServerTrusted
in interface JSSE.ServerTrustManager
protected static java.lang.String getCertificateFingerprint(java.security.cert.X509Certificate cert)
protected abstract boolean promptUserForTrust(java.security.cert.X509Certificate cert)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |