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 static function base64Encode(s:String):String
Parameters
Returns
public static function generateTimestamp(timestamp:Date):String
Parameters
Returns
public static function getBase64Digest(nonce:String, created:String, password:String):String
Parameters
| nonce:String |
|
| created:String |
|
| password:String |
Returns
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
|