Package net.shibboleth.idp.authn.impl
Class X509ResourceCredentialConfig
java.lang.Object
net.shibboleth.idp.authn.impl.X509ResourceCredentialConfig
- All Implemented Interfaces:
CredentialConfig
Implementation of
CredentialConfig
that loads trust and key material using a Resource
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Resource
Name of the authentication certificate to use for the SSL connection.private Resource
Name of the key to use for the SSL connection.private String
Password to decrypt the authentication key.private Resource
Name of the trust certificates to use for the SSL connection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAuthenticationCertificate
(Resource resource) Set the authentication certificate resource.void
setAuthenticationKey
(Resource resource) Set the authentication key resource.void
setAuthenticationKeyPassword
(String password) Set the authentication key password.void
setTrustCertificates
(Resource resource) Set the trust certificates resource.
-
Field Details
-
trustCertificates
Name of the trust certificates to use for the SSL connection. -
authenticationCertificate
Name of the authentication certificate to use for the SSL connection. -
authenticationKey
Name of the key to use for the SSL connection. -
authenticationKeyPassword
Password to decrypt the authentication key.
-
-
Constructor Details
-
X509ResourceCredentialConfig
public X509ResourceCredentialConfig()
-
-
Method Details
-
setTrustCertificates
Set the trust certificates resource.- Parameters:
resource
- the trust certificates resource
-
setAuthenticationCertificate
Set the authentication certificate resource.- Parameters:
resource
- the authentication certificate resource
-
setAuthenticationKey
Set the authentication key resource.- Parameters:
resource
- the authentication key resource
-
setAuthenticationKeyPassword
Set the authentication key password.- Parameters:
password
- the authentication key password
-
createSSLContextInitializer
- Specified by:
createSSLContextInitializer
in interfaceCredentialConfig
- Throws:
GeneralSecurityException
-