public class X509ResourceCredentialConfig extends Object implements CredentialConfig
CredentialConfig that loads trust and key material using a Resource.| Modifier and Type | Field and Description |
|---|---|
private Resource |
authenticationCertificate
Name of the authentication certificate to use for the SSL connection.
|
private Resource |
authenticationKey
Name of the key to use for the SSL connection.
|
private String |
authenticationKeyPassword
Password to decrypt the authentication key.
|
private Resource |
trustCertificates
Name of the trust certificates to use for the SSL connection.
|
| Constructor and Description |
|---|
X509ResourceCredentialConfig() |
| Modifier and Type | Method and Description |
|---|---|
SSLContextInitializer |
createSSLContextInitializer() |
void |
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.
|
private Resource trustCertificates
private Resource authenticationCertificate
private Resource authenticationKey
private String authenticationKeyPassword
public void setTrustCertificates(@Nonnull@NotEmpty Resource resource)
resource - the trust certificates resourcepublic void setAuthenticationCertificate(@Nonnull@NotEmpty Resource resource)
resource - the authentication certificate resourcepublic void setAuthenticationKey(@Nonnull@NotEmpty Resource resource)
resource - the authentication key resourcepublic void setAuthenticationKeyPassword(@Nonnull@NotEmpty String password)
password - the authentication key passwordpublic SSLContextInitializer createSSLContextInitializer() throws GeneralSecurityException
createSSLContextInitializer in interface CredentialConfigGeneralSecurityExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.