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 net.shibboleth.utilities.java.support.resource.ResourceauthenticationCertificateName of the authentication certificate to use for the SSL connection.private net.shibboleth.utilities.java.support.resource.ResourceauthenticationKeyName of the key to use for the SSL connection.private StringauthenticationKeyPasswordPassword to decrypt the authentication key.private net.shibboleth.utilities.java.support.resource.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(net.shibboleth.utilities.java.support.resource.Resource resource)Set the authentication certificate resource.voidsetAuthenticationKey(net.shibboleth.utilities.java.support.resource.Resource resource)Set the authentication key resource.voidsetAuthenticationKeyPassword(String password)Set the authentication key password.voidsetTrustCertificates(net.shibboleth.utilities.java.support.resource.Resource resource)Set the trust certificates resource.
-
-
-
Field Detail
-
trustCertificates
private net.shibboleth.utilities.java.support.resource.Resource trustCertificates
Name of the trust certificates to use for the SSL connection.
-
authenticationCertificate
private net.shibboleth.utilities.java.support.resource.Resource authenticationCertificate
Name of the authentication certificate to use for the SSL connection.
-
authenticationKey
private net.shibboleth.utilities.java.support.resource.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 net.shibboleth.utilities.java.support.resource.Resource resource)Set the trust certificates resource.- Parameters:
resource- the trust certificates resource
-
setAuthenticationCertificate
public void setAuthenticationCertificate(@Nonnull @NotEmpty net.shibboleth.utilities.java.support.resource.Resource resource)Set the authentication certificate resource.- Parameters:
resource- the authentication certificate resource
-
setAuthenticationKey
public void setAuthenticationKey(@Nonnull @NotEmpty net.shibboleth.utilities.java.support.resource.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
-
-