public class KeyStoreCredentialConfig extends 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. |
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.
|
protected KeyStoreCredentialReader keyStoreReader
public String getTrustStore()
String
truststore namepublic void setTrustStore(String s)
s
- String
truststore namepublic String getTrustStorePassword()
String
truststore passwordpublic void setTrustStorePassword(String s)
s
- String
truststore passwordpublic String getTrustStoreType()
String
truststore typepublic void setTrustStoreType(String s)
s
- String
truststore typepublic String getKeyStore()
String
keystore namepublic void setKeyStore(String s)
s
- String
keystore namepublic String getKeyStorePassword()
String
keystore passwordpublic void setKeyStorePassword(String s)
s
- String
keystore passwordpublic String getKeyStoreType()
String
keystore typepublic void setKeyStoreType(String s)
s
- String
keystore typepublic SSLContextInitializer createSSLContextInitializer() throws GeneralSecurityException
SSLContextInitializer
using the configured trust
and authentication material in this config.createSSLContextInitializer
in interface CredentialConfig
SSLContextInitializer
GeneralSecurityException
- if the ssl context initializer cannot be
createdCopyright © 2018. All rights reserved.