|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cscc.crypto.provider.spec.DESOperationModeInitializationVectorSpec
DES Initialization Vector (64 bit) class.
This class is immutable.
Constructor Summary | |
DESOperationModeInitializationVectorSpec(byte[] iv)
Creates a new DESOperationModeInitializationVectorSpec. |
|
DESOperationModeInitializationVectorSpec(byte[] iv,
int offset)
Creates a new DESOperationModeInitializationVectorSpec. |
|
DESOperationModeInitializationVectorSpec(DESOperationModeInitializationVectorSpec iv)
Creates a new DESOperationModeInitializationVectorSpec 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[] |
getIv()
Returns the initialization vector. |
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 DESOperationModeInitializationVectorSpec(byte[] iv) throws IllegalBlockSizeException
iv
- the initialization vector to set.
IllegalBlockSizeException
- if length of iv shorter than 8 bytes.
If it is longer, we use only the first 8 bytes from iv.public DESOperationModeInitializationVectorSpec(byte[] iv, int offset) throws IllegalBlockSizeException
iv
- the initialization vector to set.offset
- the offset in iv, where iv starts.
IllegalBlockSizeException
- if length of iv shorter than
offset+8 bytes. If it is longer, we use only the first 8 bytes from iv,
starting at offset.public DESOperationModeInitializationVectorSpec(DESOperationModeInitializationVectorSpec iv)
iv
- the initialization vector to set.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[] getIv()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |