Save This Page
Home » openjdk-7 » com.sun.crypto » provider » [javadoc | source]
com.sun.crypto.provider
final class: DESKey [javadoc | source]
java.lang.Object
   com.sun.crypto.provider.DESKey

All Implemented Interfaces:
    SecretKey

This class represents a DES key.
Field Summary
static final  long serialVersionUID     
Constructor:
 DESKey(byte[] key) throws InvalidKeyException 
    Uses the first 8 bytes of the given key as the DES key.
    Parameters:
    key - the buffer with the DES key bytes.
    Throws:
    InvalidKeyException - if less than 8 bytes are available for the key.
    exception: InvalidKeyException - if less than 8 bytes are available for the key.
 DESKey(byte[] key,
    int offset) throws InvalidKeyException 
    Uses the first 8 bytes in key, beginning at offset, as the DES key
    Parameters:
    key - the buffer with the DES key bytes.
    offset - the offset in key, where the DES key bytes start.
    Throws:
    InvalidKeyException - if less than 8 bytes are available for the key.
    exception: InvalidKeyException - if less than 8 bytes are available for the key.
Method from com.sun.crypto.provider.DESKey Summary:
equals,   finalize,   getAlgorithm,   getEncoded,   getFormat,   hashCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.crypto.provider.DESKey Detail:
 public boolean equals(Object obj) 
 protected  void finalize() throws Throwable 
    Ensures that the bytes of this key are set to zero when there are no more references to it.
 public String getAlgorithm() 
 public byte[] getEncoded() 
 public String getFormat() 
 public int hashCode() 
    Calculates a hash code value for the object. Objects that are equal will also have the same hashcode.