usernameToken

Version

Adds a wsse:UsernameToken to the wsse:Security header. Username and password are evaluated as SpEL template expressions, so both static values and values taken from the exchange (e.g. ${property.apiUser}) are supported.

Syntax

usernameToken:
password: <string>
passwordType: plain_text
username: <string>
usernameToken:
  password: <string>
  passwordType: plain_text
  username: <string>

Attributes

NameRequiredDefaultDescriptionExamples
passwordfalse-Password to place in the UsernameToken. Evaluated as a SpEL template expression, so both static values and expressions (e.g. ${property.apiPassword}) are supported.${property.apiPassword}
passwordTypefalsePLAIN_TEXTWhether the password is sent as plain text or as a WS-Security digest.DIGEST
usernamefalse-Username to place in the UsernameToken. Evaluated as a SpEL template expression, so both static values and expressions (e.g. ${property.apiUser}) are supported.${property.apiUser}

Can be used in