Class X509ResourceCredentialConfig

java.lang.Object
net.shibboleth.idp.authn.impl.X509ResourceCredentialConfig
All Implemented Interfaces:
CredentialConfig

public class X509ResourceCredentialConfig extends Object implements CredentialConfig
Implementation of CredentialConfig that loads trust and key material using a Resource.
  • Field Details

    • 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.
  • Constructor Details

    • X509ResourceCredentialConfig

      public X509ResourceCredentialConfig()
  • Method Details

    • 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:
      createSSLContextInitializer in interface CredentialConfig
      Throws:
      GeneralSecurityException