au.net.aba.crypto.provider
Class PBEKey

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

public class PBEKey
extends java.lang.Object
implements SecretKey

A class wrapper for Blowfish keys.

See Also:
Serialized Form

Field Summary
static java.lang.String ident
           
 
Constructor Summary
PBEKey(char[] pwd)
          The basic constructor
 
Method Summary
 java.lang.String getAlgorithm()
          returns the algorithm for this key.
 byte[] getEncoded()
          returns a null since there is no encoded form.
 java.lang.String getFormat()
          returns the format for this key.
 char[] getPassword()
          Returns the password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

PBEKey

public PBEKey(char[] pwd)
The basic constructor
Parameters:
pwd - the bytes making up the key.
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
returns the algorithm for this key.
Returns:
the string "PBE"

getFormat

public java.lang.String getFormat()
returns the format for this key.
Returns:
the string "RAW"

getEncoded

public byte[] getEncoded()
returns a null since there is no encoded form.
Returns:
the key as a byte array

getPassword

public char[] getPassword()
Returns the password. This method is specific to the PBE implementation