Package net.shibboleth.idp.authn.impl
Class X509ResourceCredentialConfig
- java.lang.Object
-
- net.shibboleth.idp.authn.impl.X509ResourceCredentialConfig
-
- All Implemented Interfaces:
CredentialConfig
public class X509ResourceCredentialConfig extends Object implements CredentialConfig
Implementation ofCredentialConfigthat loads trust and key material using aResource.
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceauthenticationCertificateName of the authentication certificate to use for the SSL connection.private ResourceauthenticationKeyName of the key to use for the SSL connection.private StringauthenticationKeyPasswordPassword to decrypt the authentication key.private ResourcetrustCertificatesName of the trust certificates to use for the SSL connection.
-
Constructor Summary
Constructors Constructor Description X509ResourceCredentialConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLContextInitializercreateSSLContextInitializer()voidsetAuthenticationCertificate(Resource resource)Set the authentication certificate resource.voidsetAuthenticationKey(Resource resource)Set the authentication key resource.voidsetAuthenticationKeyPassword(String password)Set the authentication key password.voidsetTrustCertificates(Resource resource)Set the trust certificates resource.
-
-
-
Field Detail
-
trustCertificates
private Resource trustCertificates
Name of the trust certificates to use for the SSL connection.
-
authenticationCertificate
private Resource authenticationCertificate
Name of the authentication certificate to use for the SSL connection.
-
authenticationKey
private Resource authenticationKey
Name of the key to use for the SSL connection.
-
authenticationKeyPassword
private String authenticationKeyPassword
Password to decrypt the authentication key.
-
-
Method Detail
-
setTrustCertificates
public void setTrustCertificates(@Nonnull @NotEmpty Resource resource)
Set the trust certificates resource.- Parameters:
resource- the trust certificates resource
-
setAuthenticationCertificate
public void setAuthenticationCertificate(@Nonnull @NotEmpty Resource resource)
Set the authentication certificate resource.- Parameters:
resource- the authentication certificate resource
-
setAuthenticationKey
public void setAuthenticationKey(@Nonnull @NotEmpty Resource resource)
Set the authentication key resource.- Parameters:
resource- the authentication key resource
-
setAuthenticationKeyPassword
public void setAuthenticationKeyPassword(@Nonnull @NotEmpty String password)
Set the authentication key password.- Parameters:
password- the authentication key password
-
createSSLContextInitializer
public SSLContextInitializer createSSLContextInitializer() throws GeneralSecurityException
- Specified by:
createSSLContextInitializerin interfaceCredentialConfig- Throws:
GeneralSecurityException
-
-