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 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NullRSA
public NullRSA()
- // constructor
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