JXTA

jxta.security.impl.publickey
Class NullRSA

java.lang.Object
  |
  +--jxta.security.impl.publickey.NullRSA

public class NullRSA
extends java.lang.Object
implements jxta.security.publickey.PublicKeyAlgorithm


Fields inherited from interface jxta.security.publickey.PublicKeyAlgorithm
name
 
Constructor Summary
NullRSA()
          // constructor
 
Method Summary
 byte[] Algorithm(byte[] data, int offset, int length, byte type, boolean encrypt)
          The Algorithm: Encrypt | decrypt, encrypt == true | false
 void clearDebug()
          turn off debugging
 java.lang.String getAlgorithmName()
          // Algorithm name
 int getEncryptionBlockLength()
           
 int getMaxInputDataBlockLength()
           
 java.lang.Object getPrivatekey()
           
 java.lang.Object getPublickey()
           
 void reset()
           
 void setDebug()
          turn on debugging
 void setPrivateKey()
           
 void setPrivateKey(java.lang.Object privatekeyData)
           
 void setPublicKey()
           
 void setPublicKey(byte[] nModulus)
           
 void setPublicKey(java.lang.Object publickeyData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullRSA

public NullRSA()
// constructor
Method Detail

getAlgorithmName

public java.lang.String getAlgorithmName()
// Algorithm name

setDebug

public void setDebug()
turn on debugging

clearDebug

public void clearDebug()
turn off debugging

reset

public void reset()
Specified by:
reset in interface jxta.security.publickey.PublicKeyAlgorithm

getMaxInputDataBlockLength

public int getMaxInputDataBlockLength()
Specified by:
getMaxInputDataBlockLength in interface jxta.security.publickey.PublicKeyAlgorithm

getEncryptionBlockLength

public int getEncryptionBlockLength()
Specified by:
getEncryptionBlockLength in interface jxta.security.publickey.PublicKeyAlgorithm

setPublicKey

public void setPublicKey()
                  throws jxta.security.exceptions.CryptoException
Specified by:
setPublicKey in interface jxta.security.publickey.PublicKeyAlgorithm

setPublicKey

public void setPublicKey(java.lang.Object publickeyData)
                  throws jxta.security.exceptions.CryptoException
Specified by:
setPublicKey in interface jxta.security.publickey.PublicKeyAlgorithm

setPublicKey

public void setPublicKey(byte[] nModulus)
                  throws jxta.security.exceptions.CryptoException
Specified by:
setPublicKey in interface jxta.security.publickey.PublicKeyAlgorithm

setPrivateKey

public void setPrivateKey()
                   throws jxta.security.exceptions.CryptoException
Specified by:
setPrivateKey in interface jxta.security.publickey.PublicKeyAlgorithm

setPrivateKey

public void setPrivateKey(java.lang.Object privatekeyData)
                   throws jxta.security.exceptions.CryptoException
Specified by:
setPrivateKey in interface jxta.security.publickey.PublicKeyAlgorithm

getPublickey

public java.lang.Object getPublickey()
                              throws jxta.security.exceptions.CryptoException
Specified by:
getPublickey in interface jxta.security.publickey.PublicKeyAlgorithm

getPrivatekey

public java.lang.Object getPrivatekey()
                               throws jxta.security.exceptions.CryptoException
Specified by:
getPrivatekey in interface jxta.security.publickey.PublicKeyAlgorithm

Algorithm

public byte[] Algorithm(byte[] data,
                        int offset,
                        int length,
                        byte type,
                        boolean encrypt)
                 throws jxta.security.exceptions.CryptoException
The Algorithm: Encrypt | decrypt, encrypt == true | false
Specified by:
Algorithm in interface jxta.security.publickey.PublicKeyAlgorithm

JXTA