JXTA

jxta.security.impl.cipher
Class NullCipher

java.lang.Object
  |
  +--jxta.security.impl.cipher.NullCipher

public final class NullCipher
extends java.lang.Object
implements jxta.security.cipher.Cipher

This class does nothing


Fields inherited from interface jxta.security.cipher.Cipher
ALG_RC4, Ciper, MODE_DECRYPT, MODE_ENCRYPT, MODE_UNKNOWN
 
Constructor Summary
NullCipher()
           
 
Method Summary
 void clearDebug()
          turn off debugging
 int doFinal(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff)
           
 byte getAlgorithm()
           
 java.lang.String getAlgorithmName()
           
 void init(jxta.security.cipher.Key theKey, byte theMode)
          Initializes the cipher S based on the key Crypto code from Bruce Schneier
 void init(jxta.security.cipher.Key theKey, byte theMode, byte[] b, int off, int len)
          Key initialization (not used for RC4 since additional parameters are not required)
 void setDebug()
          turn on debugging
 int update(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCipher

public NullCipher()
Method Detail

getAlgorithmName

public java.lang.String getAlgorithmName()

setDebug

public void setDebug()
turn on debugging

clearDebug

public void clearDebug()
turn off debugging

getAlgorithm

public byte getAlgorithm()
Specified by:
getAlgorithm in interface jxta.security.cipher.Cipher

init

public void init(jxta.security.cipher.Key theKey,
                 byte theMode,
                 byte[] b,
                 int off,
                 int len)
          throws jxta.security.exceptions.CryptoException
Key initialization (not used for RC4 since additional parameters are not required)
Specified by:
init in interface jxta.security.cipher.Cipher

init

public void init(jxta.security.cipher.Key theKey,
                 byte theMode)
          throws jxta.security.exceptions.CryptoException
Initializes the cipher S based on the key Crypto code from Bruce Schneier
Specified by:
init in interface jxta.security.cipher.Cipher

update

public int update(byte[] inBuf,
                  int inOff,
                  int inLen,
                  byte[] outBuf,
                  int outOff)
           throws jxta.security.exceptions.CryptoException
Specified by:
update in interface jxta.security.cipher.Cipher

doFinal

public int doFinal(byte[] inBuf,
                   int inOff,
                   int inLen,
                   byte[] outBuf,
                   int outOff)
            throws jxta.security.exceptions.CryptoException
Specified by:
doFinal in interface jxta.security.cipher.Cipher

JXTA