au.net.aba.crypto.provider
Class RC5SecretKey

java.lang.Object
  |
  +--au.net.aba.crypto.provider.RC5SecretKey

public class RC5SecretKey
extends java.lang.Object
implements SecretKey

Implements the RC5 Secret Key

See Also:
Serialized Form

Fields inherited from interface javax.crypto.SecretKey
ident
 
Fields inherited from interface java.security.Key
serialVersionUID
 
Constructor Summary
protected RC5SecretKey()
          Constructs a new RC5 Secret key
protected RC5SecretKey(byte[] keyBytes)
          Constructs a new RC5 Secret key from the given set of bytes
 
Method Summary
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
          Returns the name of the primary encoding format of this key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RC5SecretKey

protected RC5SecretKey()
Constructs a new RC5 Secret key

RC5SecretKey

protected RC5SecretKey(byte[] keyBytes)
Constructs a new RC5 Secret key from the given set of bytes

Parameters:
keyBytes - bytes buffer used to construct key
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Returns:
the standard algorithm name for this key ("RC5")

getFormat

public java.lang.String getFormat()
Returns the name of the primary encoding format of this key. According to the SecretKey interface, we return "RAW".

Returns:
primary encoding format of this key ("RAW")

getEncoded

public byte[] getEncoded()
Returns:
the key in its primary encoding format in byte[]