com.entrust.toolkit.x509.jsse

Class JSSEEntrustManagerFactoryParameters

    • Constructor Detail

      • JSSEEntrustManagerFactoryParameters

        public JSSEEntrustManagerFactoryParameters(java.security.KeyStore ks,
                                           LdapDirectory directory,
                                           ClientSettings clientSettings)
        Set the parameters which will be used by the X509TrustManagerFactory
        Parameters:
        ks - the KeyStore
        directory - the LDAPDirectory used to retrieve certificates and CRL's
        clientSettings - the ClientSettings. If null is passed in a default ClientSetting will be used.
        Since:
        7.2 patch
      • JSSEEntrustManagerFactoryParameters

        public JSSEEntrustManagerFactoryParameters(java.security.KeyStore ks,
                                           java.io.InputStream KSIniFile,
                                           SecureStringBuffer password)
                                            throws java.security.NoSuchAlgorithmException,
                                                   java.io.IOException,
                                                   java.security.KeyStoreException,
                                                   java.security.cert.CertificateException
        Get the directory setting from the KSIniFile. A default ClientSettings will be used. If a specific ClientSetting is required, call the JSSEEntrustManagerFactoryParameters(KeyStore, LdapDirectory, ClientSettings) constructor. The
        Parameters:
        the - Keystore which contains the certificates
        KSIniFile - the inputstream containing the KSIniFile which is used to extract the Directory information
        password - The SecureStringBuffer used to protect the KSIniFile.
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.KeyStoreException
        java.security.cert.CertificateException
    • Method Detail

      • setDirectory

        public void setDirectory(LdapDirectory directory)
        Set the LDAP Directory which is used to lookup certificates and CRLS for certificate validation.
        Parameters:
        directory - the LDAP directory
      • setClientSettings

        public void setClientSettings(ClientSettings settings)
        Set the ClientSettings which may be used as part of certificate validation
        Parameters:
        settings - The ClientSettings
      • getKeyStore

        public java.security.KeyStore getKeyStore()
        Returns the KeyStore stored by this class
        Returns:
        the KeyStore
      • getDirectory

        public LdapDirectory getDirectory()
        Return the Directory stored by this class
        Returns:
        the Directory
      • getClientSettings

        public ClientSettings getClientSettings()
        Return the ClientSettings stored by this class
        Returns:
        the ClientSettings