Name

RC4Cipher

Synopsis

This class implements the Cipher interface and performs RC4 encryption (or decryption). Instances of this class are returned from the JxtaCryptoSuite class when it is constructed with a profile that includes JxtaCrypto.MEMBER_RC4. This class is not usually used directly.

public final class RC4Cipher implements jxta.security.cipher.Cipher {
// Public Constructors
   public RC4Cipher();  
// Public Instance Methods
   public int transform(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff);  
// Methods Implementing Cipher
   public int doFinal(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff) 
       throws jxta.security.exceptions.CryptoException; 
   public byte getAlgorithm();                                  
// constant default:4
   public void init(jxta.security.cipher.Key theKey, byte theMode) throws jxta.security.exceptions.CryptoException;
   public void init(jxta.security.cipher.Key theKey, byte theMode, byte[ ] b, int off, int len) 
       throws jxta.security.exceptions.CryptoException;
   public int update(byte[ ] inBuf, int inOff, int inLen, byte[ ] outBuf, int outOff) 
       throws jxta.security.exceptions.CryptoException; 
// Methods Implementing Description
   public void clearDebug();  
   public String getAlgorithmName();                            
// default:"RC4 Cipher”
   public void setDebug();  
}

Get JXTA in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.