Package ddf.security

Class SecurityConstants

java.lang.Object
ddf.security.SecurityConstants

public final class SecurityConstants extends Object
  • Field Details

    • SECURITY_LOGGER

      public static final String SECURITY_LOGGER
      String used to retrieve the security LOGGER in each class that wishes to log to the security log. Guarantees that all classes use the same security LOGGER.
      See Also:
    • SECURITY_SUBJECT

      public static final String SECURITY_SUBJECT
      Property name for the security subject. The subject is added to incoming requests under this property name. The security framework retrieves the subject using this property name in order to perform any security operations involving the subject of the request.
      See Also:
    • SECURITY_JAVA_SUBJECT

      public static final String SECURITY_JAVA_SUBJECT
      Property name for the java security subject. The java subject is added to incoming requests under this property name. The security framework retrieves the java subject using this property name in order to perform any security operations involving the java subject of the request.
      See Also:
    • AUTHENTICATION_TOKEN_KEY

      public static final String AUTHENTICATION_TOKEN_KEY
      Property key to obtain the authentication token from a query request / response.
      See Also:
    • SECURITY_TOKEN_KEY

      public static final String SECURITY_TOKEN_KEY
      Property key to obtain the security token from a query request / response.
      See Also:
    • SAML_HEADER_NAME

      public static final String SAML_HEADER_NAME
      Name of the header containing the saml assertion for HTTP requests/responses
      See Also:
    • HTTPS_CIPHER_SUITES

      public static final String HTTPS_CIPHER_SUITES
      Keystore/truststore related system property keys
      See Also:
    • KEYSTORE_PASSWORD

      public static final String KEYSTORE_PASSWORD
      See Also:
    • KEYSTORE_PATH

      public static final String KEYSTORE_PATH
      See Also:
    • KEYSTORE_TYPE

      public static final String KEYSTORE_TYPE
      See Also:
    • TRUSTSTORE_PASSWORD

      public static final String TRUSTSTORE_PASSWORD
      See Also:
    • TRUSTSTORE_PATH

      public static final String TRUSTSTORE_PATH
      See Also:
    • TRUSTSTORE_TYPE

      public static final String TRUSTSTORE_TYPE
      See Also:
    • KEYSET_DIR

      public static final String KEYSET_DIR
      See Also:
    • ASSOCIATED_DATA_PATH

      public static final String ASSOCIATED_DATA_PATH
      See Also:
    • DEFAULT_SSL_PROTOCOL

      public static final String DEFAULT_SSL_PROTOCOL
      See Also:
    • DEFAULT_SSL_PROTOCOL_PROPERTY

      public static final String DEFAULT_SSL_PROTOCOL_PROPERTY
      See Also:
  • Method Details

    • getKeystorePath

      public static String getKeystorePath()
      Helper method for retrieving the keystore
      Returns:
      The path to the keystore
    • getKeystorePassword

      public static String getKeystorePassword()
      Helper method for retrieving the keystore password
      Returns:
      The keystore password
    • getTruststorePath

      public static String getTruststorePath()
      Helper method for retrieving the truststore
      Returns:
      The path to the truststore
    • getTruststorePassword

      public static String getTruststorePassword()
      Helper method for retrieving the truststore password
      Returns:
      The truststore password
    • getDefaultSslProtocol

      public static String getDefaultSslProtocol()
      Helper method for retrieving the default ssl protocol
      Returns:
      The default ssl protocol
    • newKeystore

      public static KeyStore newKeystore() throws KeyStoreException
      Throws:
      KeyStoreException
    • newTruststore

      public static KeyStore newTruststore() throws KeyStoreException
      Throws:
      KeyStoreException