edu.vt.middleware.ldap.ssl
Class KeyStoreCredentialConfig

java.lang.Object
  extended by edu.vt.middleware.ldap.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 KeyStoreCredentialReader.

Version:
$Revision: 1106 $ $Date: 2010-01-29 23:34:13 -0500 (Fri, 29 Jan 2010) $
Author:
Middleware Services

Field Summary
protected  KeyStoreCredentialReader keyStoreReader
          Handles loading keystores.
 
Constructor Summary
KeyStoreCredentialConfig()
           
 
Method Summary
 SSLContextInitializer createSSLContextInitializer()
          Creates an SSLContextInitializer using the configured trust and authentication material in this config.
 String getKeyStore()
          This returns the name of the keystore to use.
 String getKeyStorePassword()
          This returns the password for the keystore.
 String getKeyStoreType()
          This returns the type of the keystore.
 String getTrustStore()
          This returns the name of the truststore to use.
 String getTrustStorePassword()
          This returns the password for the truststore.
 String getTrustStoreType()
          This returns the type of the truststore.
 void setKeyStore(String s)
          This sets the name of the keystore to use.
 void setKeyStorePassword(String s)
          This sets the password for the keystore.
 void setKeyStoreType(String s)
          This sets the type of the keystore.
 void setTrustStore(String s)
          This sets the name of the truststore to use.
 void setTrustStorePassword(String s)
          This sets the password for the truststore.
 void setTrustStoreType(String s)
          This sets the type of the truststore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyStoreReader

protected KeyStoreCredentialReader keyStoreReader
Handles loading keystores.

Constructor Detail

KeyStoreCredentialConfig

public KeyStoreCredentialConfig()
Method Detail

getTrustStore

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

Returns:
String truststore name

setTrustStore

public void setTrustStore(String s)
This sets the name of the truststore to use.

Parameters:
s - String truststore name

getTrustStorePassword

public String getTrustStorePassword()
This returns the password for the truststore.

Returns:
String truststore password

setTrustStorePassword

public void setTrustStorePassword(String s)
This sets the password for the truststore.

Parameters:
s - String truststore password

getTrustStoreType

public String getTrustStoreType()
This returns the type of the truststore.

Returns:
String truststore type

setTrustStoreType

public void setTrustStoreType(String s)
This sets the type of the truststore.

Parameters:
s - String truststore type

getKeyStore

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

Returns:
String keystore name

setKeyStore

public void setKeyStore(String s)
This sets the name of the keystore to use.

Parameters:
s - String keystore name

getKeyStorePassword

public String getKeyStorePassword()
This returns the password for the keystore.

Returns:
String keystore password

setKeyStorePassword

public void setKeyStorePassword(String s)
This sets the password for the keystore.

Parameters:
s - String keystore password

getKeyStoreType

public String getKeyStoreType()
This returns the type of the keystore.

Returns:
String keystore type

setKeyStoreType

public void setKeyStoreType(String s)
This sets the type of the keystore.

Parameters:
s - String keystore type

createSSLContextInitializer

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

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


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