Packagenet.oauth.encryption
Classpublic class HMAC



Public Methods
 MethodDefined by
  
HMAC(hash:IHash, bits:uint = 0)
Create a HMAC object, using a Hash function, and optionally a number of bits to return.
HMAC
  
compute(key:ByteArray, data:ByteArray):ByteArray
Compute a HMAC using a key and some data.
HMAC
  
dispose():void
HMAC
  
getHashSize():uint
HMAC
  
toString():String
HMAC
Constructor detail
HMAC()constructor
public function HMAC(hash:IHash, bits:uint = 0)

Create a HMAC object, using a Hash function, and optionally a number of bits to return. The HMAC will be truncated to that size if needed.

Parameters
hash:IHash
 
bits:uint (default = 0)
Method detail
compute()method
public function compute(key:ByteArray, data:ByteArray):ByteArray

Compute a HMAC using a key and some data. It doesn't modify either, and returns a new ByteArray with the HMAC value.

Parameters
key:ByteArray
 
data:ByteArray

Returns
ByteArray
dispose()method 
public function dispose():void
getHashSize()method 
public function getHashSize():uint

Returns
uint
toString()method 
public function toString():String

Returns
String