...
constant | default | definition |
ws-security.validate.token | true | Whether to validate the password of a received UsernameToken or not. |
ws-security.enableRevocation | false | Whether to enable Certificate Revocation List (CRL) checking or not when verifying trust in a certificate. |
ws-security.username-token.always.encrypted | true | Whether to always encrypt UsernameTokens that are defined as a SupportingToken. This should not be set to false in a production environment, as it exposes the password (or the digest of the password) on the wire. |
ws-security.is-bsp-compliant | true | Whether to ensure compliance with the Basic Security Profile (BSP) 1.1 or not. |
ws-security.self-sign-saml-assertion | false | Whether to self-sign a SAML Assertion or not. If this is set to true, then an enveloped signature will be generated when the SAML Assertion is constructed. Only applies up to CXF 2.7.x. |
ws-security.enable.nonce.cache | (varies) | Whether to cache UsernameToken nonces. See here for more information. |
ws-security.enable.timestamp.cache | (varies) | Whether to cache Timestamp Created Strings. See here for more information. |
ws-security.enable.saml.cache | (varies) | Whether to cache SAML2 Token Identifiers, if the token contains a "OneTimeUse" Condition. |
ws-security.validate.saml.subject.conf | true | Whether to validate the SubjectConfirmation requirements of a received SAML Token. |
...
ws-security.enable.streaming | false | Whether to enable streaming WS-Security |
...
. | ||||
ws-security.return. | timestampsecurity. | timeToLiveThe time in seconds to append to the Creation value of an incoming Timestamp to determine whether to accept the Timestamp as valid or not. The default value is 300 seconds (5 minutes)error | false | Whether to return the security error message to the client, and not one of the default error QNames. |
ws-security. | timestamp.futureTimeToLiveThe time in seconds in the future within which the Created time of an incoming Timestamp is valid. The default value is "60". See here for more informationmust-understand | true | Set this to "false" in order to remove the SOAP mustUnderstand header from security headers generated based on a WS-SecurityPolicy. | |
ws-security.sc. | saml-role-attributenameThe attribute URI of the SAML AttributeStatement where the role information is stored. The default is "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role".jaas-subject | true | Set this to "false" if security context must not be created from JAAS Subject. |
Non-boolean WS-Security Configuration parameters
ws-security.kerberostimestamp.clienttimeToLive | The time in seconds to append to the Creation value of an incoming Timestamp to determine whether to accept the Timestamp as valid or not. The default value is 300 seconds (5 minutes)A reference to the KerberosClient class used to obtain a service ticket. | ||||
ws-security.spnegotimestamp.client.action | The SpnegoClientAction implementation to use for SPNEGO. This allows the user to plug in a different implementation to obtain a service ticket. | futureTimeToLive | The time in seconds in the future within which the Created time of an incoming Timestamp is valid. The default value is "60". See here for more information | ws-security.kerberos.jaas.context | The JAAS Context name to use for Kerberos. |
ws-security.kerberos.spnsaml-role-attributename | The attribute URI of the SAML AttributeStatement where the role information is stored. The default is "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role"The Kerberos Service Provider Name (spn) to use. | ||||
ws-security.noncespnego.cacheclient.instanceaction | The SpnegoClientAction implementation to use for SPNEGO. This allows the user to plug in a different implementation to obtain a service ticket. | ||||
ws-security.nonce.cache.instance | This holds a reference to a This holds a reference to a ReplayCache instance used to cache UsernameToken nonces. The default instance that is used is the EHCacheReplayCache. | ||||
ws-security.timestamp.cache.instance | This holds a reference to a ReplayCache instance used to cache Timestamp Created Strings. The default instance that is used is the EHCacheReplayCache. | ||||
ws-security.saml.cache.instance | This holds a reference to a ReplayCache instance used to cache SAML2 Token Identifiers, when the token has a "OneTimeUse" Condition. The default instance that is used is the EHCacheReplayCache. | ||||
ws-security.cache.config.file | Set this property to point to a configuration file for the underlying caching implementation. The default configuration file that is used is cxf-ehcache.xml in the cxf-rt-ws-security module. | ||||
org.apache.cxf.ws.security.tokenstore.TokenStore | The TokenStore instance to use to cache security tokens. By default this uses the EHCacheTokenStore if EhCache is available. Otherwise it uses the MemoryTokenStore. | ||||
ws-security.cache.identifier | The Cache Identifier to use with the TokenStore. CXF uses the following key to retrieve a token store: "org.apache.cxf.ws.security.tokenstore.TokenStore-<identifier>". This key can be used to configure service-specific cache configuration. If the identifier does not match, then it falls back to a cache configuration with key "org.apache.cxf.ws.security.tokenstore.TokenStore". The default "<identifier>" is the QName of the service in question. | ||||
ws-security.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. These constraints are not used when the certificate is contained in the keystore (direct trust). | ||||
ws-security.role.classifier | If one of the WSS4J Validators returns a JAAS Subject from Validation, then the WSS4JInInterceptor will attempt to create a SecurityContext based on this Subject. If this value is not specified, then it tries to get roles using the DefaultSecurityContext in cxf-rt-core. Otherwise it uses this value in combination with the SUBJECT_ROLE_CLASSIFIER_TYPE to get the roles from the Subject. | ||||
ws-security.role.classifier.type | If one of the WSS4J Validators returns a JAAS Subject from Validation, then the WSS4JInInterceptor will attempt to create a SecurityContext based on this Subject. Currently accepted values are "prefix" or "classname". Must be used in conjunction with the SUBJECT_ROLE_CLASSIFIER. The default value is "prefix". | ||||
ws-security.asymmetric.signature.algorithm | This configuration tag overrides the default Asymmetric Signature algorithm (RSA-SHA1) for use in WS-SecurityPolicy, as the WS-SecurityPolicy specification does not allow the use of other algorithms at present. |
...
ws-security.password. | utencryptor.instance | A PasswordEncryptor instance, which is used to encrypt or decrypt passwords in the Merlin Crypto implementation |
ws-security.delegated.credential | A delegated credential to use for WS-Security. Currently only a Kerberos GSSCredential Object is supported. This is used to retrieve a service ticket instead of using the client credentials. |
Validator implementations for validating received security tokens
ws-security.ut | validatorThe WSS4J Validator instance to use to validate UsernameTokens. The default value is the UsernameTokenValidator. | ws-security.saml1.validator | The WSS4J Validator instance to use to validate SAML 1UsernameTokens. 1 Tokens. The default value is the UsernameTokenValidator. |
ws-security.saml1.validator | The WSS4J Validator instance to use to validate SAML 1.1 Tokens. The default value is the SamlAssertionValidator. | ||
ws-security.saml2.validator | The WSS4J Validator instance to use to validate SAML 2.0 Tokens. The default value is the SamlAssertionValidator. | ||
ws-security.timestamp.validator | The WSS4J Validator instance to use to validate Timestamps. The default value is the TimestampValidator. | ||
ws-security.signature.validator | The WSS4J Validator instance to use to validate trust in credentials used in Signature verification. The default value is the SignatureTrustValidator. | ||
ws-security.bst.validator | The WSS4J Validator instance to use to validate BinarySecurityTokens. The default value is the NoOpValidator. | ||
ws-security.sct.validator | The WSS4J Validator instance to use to validate SecurityContextTokens. The default value is the NoOpValidator. |
...
ws-security.sts.client | A reference to the STSClient class used to communicate with the STS. |
ws-security.sts.applies-to | The "AppliesTo" address to send to the STS. The default is the endpoint address of the service provider. |
ws-security.sts.token.usecert | If true, writes out an X509Certificate structure in UseKey/KeyInfo. If false (the default), writes out a KeyValue structure instead. |
ws-security.sts.token.do.cancel | Whether to cancel a token when using SecureConversation after successful invocation. The default is "false". |
ws-security.issue.after.failed.renew | Whether to fall back to calling "issue" after failing to renew an expired token. The default is "true". |
ws-security.cache.issued.token.in.endpoint | Set this to "false" to not cache a SecurityToken per proxy object in the IssuedTokenInterceptorProvider. This should be done if a token is being retrieved from an STS in an intermediary. The default value is "true". |
ws-security.sts.disable-wsmex-call-using-epr-address | Whether to avoid STS client trying send WS-MetadataExchange call using STS EPR WSA address when the endpoint contract contains no WS-MetadataExchange info. The default value is "false". |
ws-security.sts.token.crypto | A Crypto object to be used for the STS. See here for more information. |
ws-security.sts.token.properties | The Crypto property configuration to use for the STS. See here for more information. |
ws-security.sts.token.username | The alias name in the keystore to get the user's public key to send to the STS for the PublicKey KeyType case. |
ws-security.sts.token.act-as | The token to be sent to the STS in an "ActAs" field. See here for more information. |
ws-security.sts.token.on-behalf-of | The token to be sent to the STS in an "OnBehalfOf" field. See here for more information. |
ws-security.issue.after.failed.renew | Whether to call "Issue" if a token "Renew" fails. Some STSs do not support the renew binding. Defaults to "true". |
ws-security.sts.token.imminent-expiry-value | The value in seconds within which a token is considered to be expired by the client, i.e. it is considered to be expired if it will expire in a time less than the value specified by this tag. The default value is "10" for CXF 3.0.2+, and "0" for CXF 2.7.13+. |
Kerberos Configuration tags
constant | default | definition |
ws-security.kerberos.use.credential.delegation | false | Whether to use credential delegation or not in the KerberosClient. |
ws-security.kerberos.is.username.in.servicename.form | false | Whether the Kerberos username is in servicename form or not. |
ws-security.kerberos.client | n/a | A reference to the KerberosClient class used to obtain a service ticket. |
ws-security.kerberos.jaas.context | n/a | The JAAS Context name to use for Kerberos. |
ws-security.kerberos.spn | n/a | The Kerberos Service Provider Name (spn) to use. |
Configuring via Spring
The properties are easily configured as client or endpoint properties--use the former for the SOAP client, the latter for the web service provider.
...