|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cscc.crypto.provider.spec.DESede2KeySpec
2 Key Triple DES secret key specification (112 bit or 128 bit with parity) class.
This class is immutable.
Constructor Summary | |
DESede2KeySpec(byte[] key)
Creates a new DESede2KeySpec from a 16 bytes long byte array. |
|
DESede2KeySpec(byte[] key,
int offset)
Creates a new DESede2KeySpec from a 16 bytes long byte array . |
|
DESede2KeySpec(DESede2KeySpec key)
Creates a new DESede2KeySpec from an existing one. |
Method Summary | |
Object |
clone()
Creates and returns a deep copy of this object. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
byte[] |
getKey()
Get the DES Key as byte[16]. |
int |
hashCode()
Returns a hash code value for the object. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DESede2KeySpec(byte[] key) throws InvalidKeyException
key
- the buffer with the two DES keys.
InvalidKeyException
- if the given key material is shorter
than 16 bytes or the key is weak or semi weak.public DESede2KeySpec(byte[] key, int offset) throws InvalidKeyException
key
- the buffer with the DES keys.offset
- the offset in key, where the key starts.
InvalidKeyException
- if the given key material is shorter
than 16 bytes or the key is weak or semi weak.public DESede2KeySpec(DESede2KeySpec key)
key
- DesKeySpec object with a key.Method Detail |
public Object clone() throws CloneNotSupportedException
CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.Cloneable
public boolean equals(Object obj)
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
Hashtable
public int hashCode()
equals(java.lang.Object)
,
Hashtable
public String toString()
public byte[] getKey()
getKey
in interface DESKeySpec
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |