Class KeystoreResourceCredentialConfig

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

public class KeystoreResourceCredentialConfig
extends Object
implements CredentialConfig
Implementation of CredentialConfig that loads keystore and truststore data using a Resource.
  • Field Details

    • keyStoreReader

      private final KeyStoreCredentialReader keyStoreReader
      Handles loading keystores.
    • truststore

      private Resource truststore
      Truststore resource.
    • truststorePassword

      private String truststorePassword
      Password for truststore.
    • truststoreType

      private String truststoreType
      Type of truststore.
    • truststoreAliases

      private String[] truststoreAliases
      Truststore aliases to use.
    • keystore

      private Resource keystore
      Keystore resource.
    • keystorePassword

      private String keystorePassword
      Password for keystore.
    • keystoreType

      private String keystoreType
      Type of keystore.
    • keystoreAliases

      private String[] keystoreAliases
      Keystore aliases to use.
  • Constructor Details

    • KeystoreResourceCredentialConfig

      public KeystoreResourceCredentialConfig()
  • Method Details

    • setTruststore

      public void setTruststore​(@Nonnull @NotEmpty Resource resource)
      Set the truststore resource.
      Parameters:
      resource - the truststore resource
    • setTruststorePassword

      public void setTruststorePassword​(@Nonnull @NotEmpty String password)
      Set the truststore password.
      Parameters:
      password - the truststore password
    • setTruststoreType

      public void setTruststoreType​(@Nonnull @NotEmpty String type)
      Set the truststore type.
      Parameters:
      type - the truststore type
    • setTruststoreAliases

      public void setTruststoreAliases​(@Nonnull @NotEmpty String[] aliases)
      Set the truststore aliases.
      Parameters:
      aliases - the truststore aliases
    • setKeystore

      public void setKeystore​(@Nonnull @NotEmpty Resource resource)
      Set the keystore resource.
      Parameters:
      resource - the keystore resource
    • setKeystorePassword

      public void setKeystorePassword​(@Nonnull @NotEmpty String password)
      Set the keystore password.
      Parameters:
      password - the keystore password
    • setKeystoreType

      public void setKeystoreType​(@Nonnull @NotEmpty String type)
      Set the keystore type.
      Parameters:
      type - the keystore type
    • setKeystoreAliases

      public void setKeystoreAliases​(@Nonnull @NotEmpty String[] aliases)
      Set the keystore aliases.
      Parameters:
      aliases - the keystore aliases
    • createSSLContextInitializer

      public SSLContextInitializer createSSLContextInitializer() throws GeneralSecurityException
      Specified by:
      createSSLContextInitializer in interface CredentialConfig
      Throws:
      GeneralSecurityException