com.ibm.crypto.fips.provider
Class DESKey
java.lang.Object
|
+--com.ibm.crypto.fips.provider.DESKey
- All Implemented Interfaces:
- java.security.Key, javax.crypto.SecretKey, java.io.Serializable
- public final class DESKey
- extends java.lang.Object
- implements javax.crypto.SecretKey
This class represents a DES key.
- Version:
- 1.20, 05/24/00
- Author:
- Jan Luehe
- See Also:
- Serialized Form
Fields inherited from interface java.security.Key |
serialVersionUID |
Method Summary |
boolean |
equals(java.lang.Object obj)
|
protected void |
finalize()
This function zeroizes the key so that it isn't in memory when GC is done. |
java.lang.String |
getAlgorithm()
|
byte[] |
getEncoded()
|
java.lang.String |
getFormat()
|
int |
hashCode()
Calculates a hash code value for the object. |
void |
zeroize()
This function zeroizes the key so that it isn't in memory |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interface java.security.Key
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interface java.security.Key
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interface java.security.Key
hashCode
public int hashCode()
- Calculates a hash code value for the object.
Objects that are equal will also have the same hashcode.
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
zeroize
public void zeroize()
- This function zeroizes the key so that it isn't in memory
finalize
protected void finalize()
- This function zeroizes the key so that it isn't in memory when GC is done.
- Overrides:
finalize
in class java.lang.Object