au.net.aba.crypto.provider
Class BlowfishKey
java.lang.Object
|
+--au.net.aba.crypto.provider.BlowfishKey
- public class BlowfishKey
- 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 |
BlowfishKey(byte[] rawKey)
The basic constructor
Keylength is variable up to 448 bits. |
Method Summary |
java.lang.String |
getAlgorithm()
returns the algorithm for this key. |
byte[] |
getEncoded()
returns an encoded representation of this key. |
java.lang.String |
getFormat()
returns the format for this key. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ident
public static final java.lang.String ident
BlowfishKey
public BlowfishKey(byte[] rawKey)
- The basic constructor
Keylength is variable up to 448 bits. (56 bytes)
- Parameters:
rawKey
- the bytes making up the key.
getAlgorithm
public java.lang.String getAlgorithm()
- returns the algorithm for this key.
- Returns:
- the string "Blowfish"
getFormat
public java.lang.String getFormat()
- returns the format for this key.
- Returns:
- the string "RAW"
getEncoded
public byte[] getEncoded()
- returns an encoded representation of this key.
- Returns:
- the key as a byte array