org.ldaptive.ssl
Class KeyStoreCredentialConfig

java.lang.Object
  extended by org.ldaptive.ssl.KeyStoreCredentialConfig
All Implemented Interfaces:
CredentialConfig

public class KeyStoreCredentialConfig
extends Object
implements CredentialConfig

Provides the properties necessary for creating an SSL context initializer with a keystore credential reader.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
KeyStoreCredentialConfig()
           
 
Method Summary
 SSLContextInitializer createSSLContextInitializer()
          Creates an SSL context initializer using the configured trust and authentication material in this config.
 boolean equals(Object o)
          
 String getKeyStore()
          Returns the name of the keystore to use.
 String[] getKeyStoreAliases()
          Returns the aliases of the keystore to use.
 String getKeyStorePassword()
          Returns the password for the keystore.
 String getKeyStoreType()
          Returns the type of the keystore.
 String getTrustStore()
          Returns the name of the truststore to use.
 String[] getTrustStoreAliases()
          Returns the aliases of the truststore to use.
 String getTrustStorePassword()
          Returns the password for the truststore.
 String getTrustStoreType()
          Returns the type of the truststore.
 int hashCode()
          
 void setKeyStore(String name)
          Sets the name of the keystore to use.
 void setKeyStoreAliases(String... aliases)
          Sets the aliases of the keystore to use.
 void setKeyStorePassword(String password)
          Sets the password for the keystore.
 void setKeyStoreType(String type)
          Sets the type of the keystore.
 void setTrustStore(String name)
          Sets the name of the truststore to use.
 void setTrustStoreAliases(String... aliases)
          Sets the aliases of the truststore to use.
 void setTrustStorePassword(String password)
          Sets the password for the truststore.
 void setTrustStoreType(String type)
          Sets the type of the truststore.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyStoreCredentialConfig

public KeyStoreCredentialConfig()
Method Detail

getTrustStore

public String getTrustStore()
Returns the name of the truststore to use.

Returns:
truststore name

setTrustStore

public void setTrustStore(String name)
Sets the name of the truststore to use.

Parameters:
name - truststore name

getTrustStorePassword

public String getTrustStorePassword()
Returns the password for the truststore.

Returns:
truststore password

setTrustStorePassword

public void setTrustStorePassword(String password)
Sets the password for the truststore.

Parameters:
password - truststore password

getTrustStoreType

public String getTrustStoreType()
Returns the type of the truststore.

Returns:
truststore type

setTrustStoreType

public void setTrustStoreType(String type)
Sets the type of the truststore.

Parameters:
type - truststore type

getTrustStoreAliases

public String[] getTrustStoreAliases()
Returns the aliases of the truststore to use.

Returns:
truststore aliases

setTrustStoreAliases

public void setTrustStoreAliases(String... aliases)
Sets the aliases of the truststore to use.

Parameters:
aliases - truststore aliases

getKeyStore

public String getKeyStore()
Returns the name of the keystore to use.

Returns:
keystore name

setKeyStore

public void setKeyStore(String name)
Sets the name of the keystore to use.

Parameters:
name - keystore name

getKeyStorePassword

public String getKeyStorePassword()
Returns the password for the keystore.

Returns:
keystore password

setKeyStorePassword

public void setKeyStorePassword(String password)
Sets the password for the keystore.

Parameters:
password - keystore password

getKeyStoreType

public String getKeyStoreType()
Returns the type of the keystore.

Returns:
keystore type

setKeyStoreType

public void setKeyStoreType(String type)
Sets the type of the keystore.

Parameters:
type - keystore type

getKeyStoreAliases

public String[] getKeyStoreAliases()
Returns the aliases of the keystore to use.

Returns:
keystore aliases

setKeyStoreAliases

public void setKeyStoreAliases(String... aliases)
Sets the aliases of the keystore to use.

Parameters:
aliases - keystore aliases

createSSLContextInitializer

public SSLContextInitializer createSSLContextInitializer()
                                                  throws GeneralSecurityException
Creates an SSL context initializer using the configured trust and authentication material in this config.

Specified by:
createSSLContextInitializer in interface CredentialConfig
Returns:
SSL context initializer
Throws:
GeneralSecurityException - if the ssl context initializer cannot be created

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.