Package net.shibboleth.idp.authn.impl
Class KeystoreResourceCredentialConfig
java.lang.Object
net.shibboleth.idp.authn.impl.KeystoreResourceCredentialConfig
- All Implemented Interfaces:
CredentialConfig
Implementation of
CredentialConfig
that loads keystore and truststore data using a Resource
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Resource
Keystore resource.private String[]
Keystore aliases to use.private String
Password for keystore.private final KeyStoreCredentialReader
Handles loading keystores.private String
Type of keystore.private Resource
Truststore resource.private String[]
Truststore aliases to use.private String
Password for truststore.private String
Type of truststore. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Field Details
-
keyStoreReader
Handles loading keystores. -
truststore
Truststore resource. -
truststorePassword
Password for truststore. -
truststoreType
Type of truststore. -
truststoreAliases
Truststore aliases to use. -
keystore
Keystore resource. -
keystorePassword
Password for keystore. -
keystoreType
Type of keystore. -
keystoreAliases
Keystore aliases to use.
-
-
Constructor Details
-
KeystoreResourceCredentialConfig
public KeystoreResourceCredentialConfig()
-
-
Method Details
-
setTruststore
Set the truststore resource.- Parameters:
resource
- the truststore resource
-
setTruststorePassword
Set the truststore password.- Parameters:
password
- the truststore password
-
setTruststoreType
Set the truststore type.- Parameters:
type
- the truststore type
-
setTruststoreAliases
Set the truststore aliases.- Parameters:
aliases
- the truststore aliases
-
setKeystore
Set the keystore resource.- Parameters:
resource
- the keystore resource
-
setKeystorePassword
Set the keystore password.- Parameters:
password
- the keystore password
-
setKeystoreType
Set the keystore type.- Parameters:
type
- the keystore type
-
setKeystoreAliases
Set the keystore aliases.- Parameters:
aliases
- the keystore aliases
-
createSSLContextInitializer
- Specified by:
createSSLContextInitializer
in interfaceCredentialConfig
- Throws:
GeneralSecurityException
-