public class KeystoreResourceCredentialConfig extends Object implements CredentialConfig
CredentialConfig that loads keystore and truststore data using a Resource.| Modifier and Type | Field and Description |
|---|---|
private Resource |
keystore
Keystore resource.
|
private String[] |
keystoreAliases
Keystore aliases to use.
|
private String |
keystorePassword
Password for keystore.
|
private KeyStoreCredentialReader |
keyStoreReader
Handles loading keystores.
|
private String |
keystoreType
Type of keystore.
|
private Resource |
truststore
Truststore resource.
|
private String[] |
truststoreAliases
Truststore aliases to use.
|
private String |
truststorePassword
Password for truststore.
|
private String |
truststoreType
Type of truststore.
|
| Constructor and Description |
|---|
KeystoreResourceCredentialConfig() |
| Modifier and Type | Method and Description |
|---|---|
SSLContextInitializer |
createSSLContextInitializer() |
void |
setKeystore(Resource resource)
Set the keystore resource.
|
void |
setKeystoreAliases(String[] aliases)
Set the keystore aliases.
|
void |
setKeystorePassword(String password)
Set the keystore password.
|
void |
setKeystoreType(String type)
Set the keystore type.
|
void |
setTruststore(Resource resource)
Set the truststore resource.
|
void |
setTruststoreAliases(String[] aliases)
Set the truststore aliases.
|
void |
setTruststorePassword(String password)
Set the truststore password.
|
void |
setTruststoreType(String type)
Set the truststore type.
|
private final KeyStoreCredentialReader keyStoreReader
private Resource truststore
private String truststorePassword
private String truststoreType
private String[] truststoreAliases
private Resource keystore
private String keystorePassword
private String keystoreType
private String[] keystoreAliases
public void setTruststore(@Nonnull@NotEmpty Resource resource)
resource - the truststore resourcepublic void setTruststorePassword(@Nonnull@NotEmpty String password)
password - the truststore passwordpublic void setTruststoreType(@Nonnull@NotEmpty String type)
type - the truststore typepublic void setTruststoreAliases(@Nonnull@NotEmpty String[] aliases)
aliases - the truststore aliasespublic void setKeystore(@Nonnull@NotEmpty Resource resource)
resource - the keystore resourcepublic void setKeystorePassword(@Nonnull@NotEmpty String password)
password - the keystore passwordpublic void setKeystoreType(@Nonnull@NotEmpty String type)
type - the keystore typepublic void setKeystoreAliases(@Nonnull@NotEmpty String[] aliases)
aliases - the keystore aliasespublic SSLContextInitializer createSSLContextInitializer() throws GeneralSecurityException
createSSLContextInitializer in interface CredentialConfigGeneralSecurityExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.