Name

RC2ParameterSpec

Synopsis

This class is a transparent representation of the parameters used by the RC2 encryption algorithm. An object of this class initializes a Cipher object that implements RC2. Note that the “SunJCE” provider supplied by Sun does not implement RC2.

javax.crypto.spec.RC2ParameterSpec

Figure 17-25. javax.crypto.spec.RC2ParameterSpec

public class RC2ParameterSpec implements java.security.spec.AlgorithmParameterSpec {
// Public Constructors
     public RC2ParameterSpec(int effectiveKeyBits);  
     public RC2ParameterSpec(int effectiveKeyBits, byte[ ] iv);  
     public RC2ParameterSpec(int effectiveKeyBits, byte[ ] iv, int offset);  
// Public Instance Methods
     public int getEffectiveKeyBits( );  
     public byte[ ] getIV( );  
// Public Methods Overriding Object
     public boolean equals(Object obj);  
     public int hashCode( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.