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 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.