Class KeystoreManager

  • All Implemented Interfaces:
    IKeystoreManager, ISSLSocketFactoryProducer

    public class KeystoreManager
    extends java.lang.Object
    implements IKeystoreManager
    This interface describes a class that manages keys and certificates in a secure manner. It's built on top of the JDK 1.4+ JSSE integration, and provides all the necessary logic to work well within the ManifoldCF java environment.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _rcsid  
      protected java.security.KeyStore keystore  
      protected java.lang.String passcode  
    • Constructor Summary

      Constructors 
      Constructor Description
      KeystoreManager​(java.lang.String passcode)
      Create the keystore object.
      KeystoreManager​(java.lang.String passcode, java.lang.String base64String)
      Create the keystore object from an existing base 64 string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCertificate​(java.lang.String alias, java.security.cert.Certificate certificate)
      Add a certificate to the keystore.
      java.security.cert.Certificate getCertificate​(java.lang.String alias)
      Read a certificate from the keystore.
      java.lang.String[] getContents()
      Grab a list of the aliases in the key store.
      java.lang.String getDescription​(java.lang.String alias)
      For an alias, get some descriptive information from the object in the keystore.
      java.lang.String getHashString()
      Get a unique hashstring for this keystore.
      javax.net.ssl.SSLSocketFactory getSecureSocketFactory()
      Build a secure socket factory based on this keystore.
      java.lang.String getString()
      Convert to a base64 string.
      javax.net.ssl.TrustManager[] getTrustManagers()
      Get the trust stores for this keystore manager.
      void importCertificate​(java.lang.String alias, java.io.InputStream certData)
      Import a certificate or key into the list.
      void remove​(java.lang.String alias)
      Remove a certificate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait