Package edu.vt.middleware.ldap.ssl
Class KeyStoreCredentialConfig
- java.lang.Object
-
- edu.vt.middleware.ldap.ssl.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 aKeyStoreCredentialReader
.- Version:
- $Revision: 1106 $ $Date: 2010-01-29 23:34:13 -0500 (Fri, 29 Jan 2010) $
- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected KeyStoreCredentialReader
keyStoreReader
Handles loading keystores.
-
Constructor Summary
Constructors Constructor Description KeyStoreCredentialConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLContextInitializer
createSSLContextInitializer()
Creates anSSLContextInitializer
using the configured trust and authentication material in this config.java.lang.String
getKeyStore()
This returns the name of the keystore to use.java.lang.String
getKeyStorePassword()
This returns the password for the keystore.java.lang.String
getKeyStoreType()
This returns the type of the keystore.java.lang.String
getTrustStore()
This returns the name of the truststore to use.java.lang.String
getTrustStorePassword()
This returns the password for the truststore.java.lang.String
getTrustStoreType()
This returns the type of the truststore.void
setKeyStore(java.lang.String s)
This sets the name of the keystore to use.void
setKeyStorePassword(java.lang.String s)
This sets the password for the keystore.void
setKeyStoreType(java.lang.String s)
This sets the type of the keystore.void
setTrustStore(java.lang.String s)
This sets the name of the truststore to use.void
setTrustStorePassword(java.lang.String s)
This sets the password for the truststore.void
setTrustStoreType(java.lang.String s)
This sets the type of the truststore.
-
-
-
Field Detail
-
keyStoreReader
protected KeyStoreCredentialReader keyStoreReader
Handles loading keystores.
-
-
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 anSSLContextInitializer
using the configured trust and authentication material in this config.- Specified by:
createSSLContextInitializer
in interfaceCredentialConfig
- Returns:
SSLContextInitializer
- Throws:
java.security.GeneralSecurityException
- if the ssl context initializer cannot be created
-
-