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

All Implemented Interfaces:
    SecretKey

This class represents a DES-EDE key.
Field Summary
static final  long serialVersionUID     
Constructor:
 DESedeKey(byte[] key) throws InvalidKeyException 
    Creates a DES-EDE key from a given key.
    Parameters:
    key - the given key
    Throws:
    InvalidKeyException - if the given key has a wrong size
    exception: InvalidKeyException - if the given key has a wrong size
 DESedeKey(byte[] key,
    int offset) throws InvalidKeyException 
    Uses the first 24 bytes in key, beginning at offset, as the DES-EDE key
    Parameters:
    key - the buffer with the DES-EDE key
    offset - the offset in key, where the DES-EDE key starts
    Throws:
    InvalidKeyException - if the given key has a wrong size
    exception: InvalidKeyException - if the given key has a wrong size
Method from com.sun.crypto.provider.DESedeKey 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.DESedeKey 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.