edu.vt.middleware.ldap.ssl
public class KeyStoreCredentialConfig extends java.lang.Object implements CredentialConfig
KeyStoreCredentialReader.| Modifier and Type | Field and Description |
|---|---|
protected KeyStoreCredentialReader |
keyStoreReader
Handles loading keystores.
|
| Constructor and Description |
|---|
KeyStoreCredentialConfig() |
| Modifier and Type | Method and Description |
|---|---|
SSLContextInitializer |
createSSLContextInitializer()
Creates an
SSLContextInitializer 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.
|
protected KeyStoreCredentialReader keyStoreReader
public java.lang.String getTrustStore()
String truststore namepublic void setTrustStore(java.lang.String s)
s - String truststore namepublic java.lang.String getTrustStorePassword()
String truststore passwordpublic void setTrustStorePassword(java.lang.String s)
s - String truststore passwordpublic java.lang.String getTrustStoreType()
String truststore typepublic void setTrustStoreType(java.lang.String s)
s - String truststore typepublic java.lang.String getKeyStore()
String keystore namepublic void setKeyStore(java.lang.String s)
s - String keystore namepublic java.lang.String getKeyStorePassword()
String keystore passwordpublic void setKeyStorePassword(java.lang.String s)
s - String keystore passwordpublic java.lang.String getKeyStoreType()
String keystore typepublic void setKeyStoreType(java.lang.String s)
s - String keystore typepublic SSLContextInitializer createSSLContextInitializer() throws java.security.GeneralSecurityException
SSLContextInitializer using the configured trust
and authentication material in this config.createSSLContextInitializer in interface CredentialConfigSSLContextInitializerjava.security.GeneralSecurityException - if the ssl context initializer cannot be
createdCopyright © 2014. All Rights Reserved.