Class KeyStoreCredentialConfig

  • All Implemented Interfaces:
    CredentialConfig

    public class KeyStoreCredentialConfig
    extends java.lang.Object
    implements CredentialConfig
    Provides the properties necessary for creating an SSL context initializer with a KeyStoreCredentialReader.
    Version:
    $Revision: 1106 $ $Date: 2010-01-29 23:34:13 -0500 (Fri, 29 Jan 2010) $
    Author:
    Middleware Services
    • Constructor Detail

      • KeyStoreCredentialConfig

        public KeyStoreCredentialConfig()
    • Method Detail

      • getTrustStore

        public java.lang.String getTrustStore()
        This returns the name of the truststore to use.
        Returns:
        String truststore name
      • setTrustStore

        public void setTrustStore​(java.lang.String s)
        This sets the name of the truststore to use.
        Parameters:
        s - String truststore name
      • getTrustStorePassword

        public java.lang.String getTrustStorePassword()
        This returns the password for the truststore.
        Returns:
        String truststore password
      • setTrustStorePassword

        public void setTrustStorePassword​(java.lang.String s)
        This sets the password for the truststore.
        Parameters:
        s - String truststore password
      • getTrustStoreType

        public java.lang.String getTrustStoreType()
        This returns the type of the truststore.
        Returns:
        String truststore type
      • setTrustStoreType

        public void setTrustStoreType​(java.lang.String s)
        This sets the type of the truststore.
        Parameters:
        s - String truststore type
      • getKeyStore

        public java.lang.String getKeyStore()
        This returns the name of the keystore to use.
        Returns:
        String keystore name
      • setKeyStore

        public void setKeyStore​(java.lang.String s)
        This sets the name of the keystore to use.
        Parameters:
        s - String keystore name
      • getKeyStorePassword

        public java.lang.String getKeyStorePassword()
        This returns the password for the keystore.
        Returns:
        String keystore password
      • setKeyStorePassword

        public void setKeyStorePassword​(java.lang.String s)
        This sets the password for the keystore.
        Parameters:
        s - String keystore password
      • getKeyStoreType

        public java.lang.String getKeyStoreType()
        This returns the type of the keystore.
        Returns:
        String keystore type
      • setKeyStoreType

        public void setKeyStoreType​(java.lang.String s)
        This sets the type of the keystore.
        Parameters:
        s - String keystore type
      • createSSLContextInitializer

        public SSLContextInitializer createSSLContextInitializer()
                                                          throws java.security.GeneralSecurityException
        Creates an SSLContextInitializer using the configured trust and authentication material in this config.
        Specified by:
        createSSLContextInitializer in interface CredentialConfig
        Returns:
        SSLContextInitializer
        Throws:
        java.security.GeneralSecurityException - if the ssl context initializer cannot be created