Package ddf.security
Class SecurityConstants
java.lang.Object
ddf.security.SecurityConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringProperty key to obtain the authentication token from a query request / response.static final Stringstatic final Stringstatic final StringKeystore/truststore related system property keysstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringProperty key to obtain the legacy saml cookie from an incoming HTTP Requeststatic final StringName of the header containing the saml assertion for HTTP requests/responsesstatic final StringProperty name for the java security subject.static final StringString used to retrieve the security LOGGER in each class that wishes to log to the security log.static final StringProperty name for the security subject.static final StringProperty key to obtain the security token from a query request / response.static final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic StringHelper method for retrieving the default ssl protocolstatic StringHelper method for retrieving the keystore passwordstatic StringHelper method for retrieving the keystorestatic StringHelper method for retrieving the truststore passwordstatic StringHelper method for retrieving the truststorestatic KeyStorestatic KeyStore
-
Field Details
-
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
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
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
Property key to obtain the authentication token from a query request / response.- See Also:
-
SECURITY_TOKEN_KEY
Property key to obtain the security token from a query request / response.- See Also:
-
SAML_COOKIE_NAME
Property key to obtain the legacy saml cookie from an incoming HTTP Request- See Also:
-
SAML_HEADER_NAME
Name of the header containing the saml assertion for HTTP requests/responses- See Also:
-
HTTPS_CIPHER_SUITES
Keystore/truststore related system property keys- See Also:
-
KEYSTORE_PASSWORD
- See Also:
-
KEYSTORE_PATH
- See Also:
-
KEYSTORE_TYPE
- See Also:
-
TRUSTSTORE_PASSWORD
- See Also:
-
TRUSTSTORE_PATH
- See Also:
-
TRUSTSTORE_TYPE
- See Also:
-
KEYSET_DIR
- See Also:
-
ASSOCIATED_DATA_PATH
- See Also:
-
DEFAULT_SSL_PROTOCOL
- See Also:
-
DEFAULT_SSL_PROTOCOL_PROPERTY
- See Also:
-
-
Method Details
-
getKeystorePath
Helper method for retrieving the keystore- Returns:
- The path to the keystore
-
getKeystorePassword
Helper method for retrieving the keystore password- Returns:
- The keystore password
-
getTruststorePath
Helper method for retrieving the truststore- Returns:
- The path to the truststore
-
getTruststorePassword
Helper method for retrieving the truststore password- Returns:
- The truststore password
-
getDefaultSslProtocol
Helper method for retrieving the default ssl protocol- Returns:
- The default ssl protocol
-
newKeystore
- Throws:
KeyStoreException
-
newTruststore
- Throws:
KeyStoreException
-