Save This Page
Home » openjdk-7 » javax » crypto » spec » [javadoc | source]
javax.crypto.spec
public class: RC2ParameterSpec [javadoc | source]
java.lang.Object
   javax.crypto.spec.RC2ParameterSpec

All Implemented Interfaces:
    AlgorithmParameterSpec

This class specifies the parameters used with the RC2 algorithm.

The parameters consist of an effective key size and optionally an 8-byte initialization vector (IV) (only in feedback mode).

This class can be used to initialize a Cipher object that implements the RC2 algorithm.

Constructor:
 public RC2ParameterSpec(int effectiveKeyBits) 
 public RC2ParameterSpec(int effectiveKeyBits,
    byte[] iv) 
 public RC2ParameterSpec(int effectiveKeyBits,
    byte[] iv,
    int offset) 
Method from javax.crypto.spec.RC2ParameterSpec Summary:
equals,   getEffectiveKeyBits,   getIV,   hashCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.crypto.spec.RC2ParameterSpec Detail:
 public boolean equals(Object obj) 
    Tests for equality between the specified object and this object. Two RC2ParameterSpec objects are considered equal if their effective key sizes and IVs are equal. (Two IV references are considered equal if both are null.)
 public int getEffectiveKeyBits() 
    Returns the effective key size in bits.
 public byte[] getIV() 
    Returns the IV or null if this parameter set does not contain an IV.
 public int hashCode() 
    Calculates a hash code value for the object. Objects that are equal will also have the same hashcode.