public class SecurityConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUDIENCE_RESTRICTION_VALIDATION
Enable SAML AudienceRestriction validation.
|
static String |
CALLBACK_HANDLER
The CallbackHandler implementation class used to obtain passwords, for both outbound and inbound
requests.
|
static Set<String> |
COMMON_PROPERTIES |
static String |
ENABLE_REVOCATION
Whether to enable Certificate Revocation List (CRL) checking or not when verifying trust
in a certificate.
|
static String |
ENABLE_UNSIGNED_SAML_ASSERTION_PRINCIPAL
Whether to allow unsigned saml assertions as SecurityContext Principals.
|
static String |
ENCRYPT_CERT
A message property for prepared X509 certificate to be used for encryption.
|
static String |
ENCRYPT_CRYPTO
A Crypto object to be used for encryption.
|
static String |
ENCRYPT_PROPERTIES
The Crypto property configuration to use for encryption, if
ENCRYPT_CRYPTO is not set instead. |
static String |
ENCRYPT_USERNAME
The user's name for encryption.
|
static String |
PASSWORD
The user's password when a
CALLBACK_HANDLER is not defined. |
static String |
SAML_CALLBACK_HANDLER
The SAML CallbackHandler implementation class used to construct SAML Assertions.
|
static String |
SAML_ROLE_ATTRIBUTENAME
The attribute URI of the SAML AttributeStatement where the role information is stored.
|
static String |
SC_FROM_JAAS_SUBJECT
Set this to "false" if security context must not be created from JAAS Subject.
|
static String |
SIGNATURE_CRYPTO
A Crypto object to be used for signature.
|
static String |
SIGNATURE_PROPERTIES
The Crypto property configuration to use for signature, if
SIGNATURE_CRYPTO is not set instead. |
static String |
SIGNATURE_USERNAME
The user's name for signature.
|
static String |
SUBJECT_CERT_CONSTRAINTS
A comma separated String of regular expressions which will be applied to the subject DN of
the certificate used for signature validation, after trust verification of the certificate
chain associated with the certificate.
|
static String |
USERNAME
The user's name.
|
static String |
VALIDATE_SAML_SUBJECT_CONFIRMATION
Whether to validate the SubjectConfirmation requirements of a received SAML Token
(sender-vouches or holder-of-key).
|
Modifier | Constructor and Description |
---|---|
protected |
SecurityConstants() |
public static final String USERNAME
SIGNATURE_USERNAME
is not set.
c) As the alias name in the keystore to get the user's public key for encryption if
ENCRYPT_USERNAME
is not set.public static final String PASSWORD
CALLBACK_HANDLER
is not defined.public static final String SIGNATURE_USERNAME
USERNAME
is used instead. If
that is also not specified, it uses the the default alias set in the properties file referenced by
SIGNATURE_PROPERTIES
. If that's also not set, and the keystore only contains a single key,
that key will be used.public static final String ENCRYPT_USERNAME
USERNAME
is used instead. If
that is also not specified, it uses the the default alias set in the properties file referenced by
ENCRYPT_PROPERTIES
. If that's also not set, and the keystore only contains a single key,
that key will be used.
For the WS-Security web service provider, the "useReqSigCert" keyword can be used to accept (encrypt to)
any client whose public key is in the service's truststore (defined in ENCRYPT_PROPERTIES
).public static final String CALLBACK_HANDLER
CallbackHandler
instance, which must
be accessible via the classpath.
b) A CallbackHandler
instance.public static final String SAML_CALLBACK_HANDLER
CallbackHandler
instance, which must
be accessible via the classpath.
b) A CallbackHandler
instance.public static final String SIGNATURE_PROPERTIES
SIGNATURE_CRYPTO
is not set instead.
The value of this tag must be either:
a) A Java Properties object that contains the Crypto configuration.
b) The path of the Crypto property file that contains the Crypto configuration.
c) A URL that points to the Crypto property file that contains the Crypto configuration.public static final String ENCRYPT_PROPERTIES
ENCRYPT_CRYPTO
is not set instead.
The value of this tag must be either:
a) A Java Properties object that contains the Crypto configuration.
b) The path of the Crypto property file that contains the Crypto configuration.
c) A URL that points to the Crypto property file that contains the Crypto configuration.public static final String SIGNATURE_CRYPTO
SIGNATURE_PROPERTIES
is used instead.public static final String ENCRYPT_CRYPTO
ENCRYPT_PROPERTIES
is used instead.public static final String ENCRYPT_CERT
ENCRYPT_PROPERTIES
or extracted from request (when WS-Security is used and
if ENCRYPT_USERNAME
has value "useReqSigCert").public static final String ENABLE_REVOCATION
public static final String ENABLE_UNSIGNED_SAML_ASSERTION_PRINCIPAL
public static final String VALIDATE_SAML_SUBJECT_CONFIRMATION
public static final String SC_FROM_JAAS_SUBJECT
public static final String AUDIENCE_RESTRICTION_VALIDATION
public static final String SAML_ROLE_ATTRIBUTENAME
public static final String SUBJECT_CERT_CONSTRAINTS
Apache CXF