September 2002
Intermediate to advanced
416 pages
14h 46m
English
RC4Cipher
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(); }
Read now
Unlock full access