webMethods CloudStreams 10.4 | webMethods CloudStreams | Administering webMethods CloudStreams | Virtual Services | Creating a New Virtual Service (SOAP) | IS Service Constructs | Using the Security API in IS Services | pub.cloudstreams.security.ws.AddUserNameToken
 
pub.cloudstreams.security.ws.AddUserNameToken
Adds the WS-Username Token 1.0 and 1.1 to the request. This service includes the following input parameters:
Parameter
Data Type
Description
Default Value
username
String
Required. Java Type: String. The value that will be added as the Username element in the token.
""
MessageContext
Object
Required. Java Type: org.apache.axis2. context. MessageContext. CloudStreams will place a MessageContext parameter into the pipeline before executing the IS service call.
org.apache. axis2.context. MessageContext instance
password
String
Java Type: String. The password for the token; must be specified if the passwordType (see below) is specified as either TEXT or DIGEST.
""
passwordType
String
Java Type: String. Specifies how the password will be added in the token. Valid values:
*NONE: The password is not added.
*TEXT: The password is added in plain text.
*DIGEST: The password is added in digested form (as specified in the UsernameToken profile).
NONE
addNonce
Boolean
Java Type: Boolean. Specifies whether the Nonce element will be added to the token.
False
addCreated
Boolean
Java Type: Boolean. Specifies whether the Created element will be added to the token.
False
salt
byte[]
Java Type: byte[]. The value for the /wsse11:UsernameToken/wsse:Salt element. Its value is a 128 bit number serialized as xs:base64Binary.
null
iteration
int
Java Type: Integer. Indicates the number of times the hashing operation is repeated when deriving the key. It is expressed as a xs:unsignedInteger value. If it is not present, a value of 1000 is used for the iteration count.
1000
useMac
Boolean
Java Type: Boolean. Indicates whether the derived key will be used as a Message Authentication Code (MAC) or as a symmetric key for encryption.
False
useBasicAuthCredentials
Boolean
Java Type: Boolean. If this parameter is set to True, CloudStreams will try to use the username and password from the Authorization HTTP header. In this case the username and password fields need not be specified.
False
actor
String
Java Type: String. Indicates the value of the SOAP actor attribute if a new security header is being added to the SOAP request. If the request already has a security header with the actor specified in it, then this value will not overwrite it.
""
mustUnderstand
Boolean
Java Type. Boolean. Specifies whether the security header will have the mustUnderstand attribute set to 0 or 1 (false / true). If the security header already has this attribute set, then this value will not overwrite it.
False

Copyright © 2013- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release