Packagecom.adobe.crypto
Classpublic class WSSEUsernameToken

Web Services Security Username Token Implementation based on algorithm description at http://www.oasis-open.org/committees/wss/documents/WSS-Username-02-0223-merged.pdf



Public Methods
 MethodDefined by
  
base64Encode(s:String):String
[static]
WSSEUsernameToken
  
generateTimestamp(timestamp:Date):String
[static]
WSSEUsernameToken
  
getBase64Digest(nonce:String, created:String, password:String):String
[static]
WSSEUsernameToken
  
getUsernameToken(username:String, password:String, nonce:String = null, timestamp:Date = null):String
[static] Generates a WSSE Username Token.
WSSEUsernameToken
Method detail
base64Encode()method
public static function base64Encode(s:String):StringParameters
s:String

Returns
String
generateTimestamp()method 
public static function generateTimestamp(timestamp:Date):StringParameters
timestamp:Date

Returns
String
getBase64Digest()method 
public static function getBase64Digest(nonce:String, created:String, password:String):StringParameters
nonce:String
 
created:String
 
password:String

Returns
String
getUsernameToken()method 
public static function getUsernameToken(username:String, password:String, nonce:String = null, timestamp:Date = null):String

Generates a WSSE Username Token.

Parameters
username:String — The username
 
password:String — The password
 
nonce:String (default = null) — A cryptographically random nonce (if null, the nonce will be generated)
 
timestamp:Date (default = null) — The time at which the token is generated (if null, the time will be set to the moment of execution)

Returns
String — The generated token