September 2002
Intermediate to advanced
416 pages
14h 46m
English
NullRSA
This class provides a dummy
implementation of the PublicKeyAlgorithm
interface. It is used only internally within the platform.
public class NullRSA implements jxta.security.publickey.PublicKeyAlgorithm { // Public Constructors public NullRSA(); // Methods Implementing PublicKeyAlgorithm public byte[ ] Algorithm(byte[ ] data, int offset, int length, byte type, boolean encrypt) throws jxta.security.exceptions.CryptoException; public int getEncryptionBlockLength(); // constant default:0 public int getMaxInputDataBlockLength(); // constant default:0 public Object getPrivatekey() throws jxta.security.exceptions.CryptoException; // default:null public Object getPublickey() throws jxta.security.exceptions.CryptoException; // default:null public void reset(); // empty public void setPrivateKey() throws jxta.security.exceptions.CryptoException; public void setPrivateKey(Object privatekeyData) throws jxta.security.exceptions.CryptoException; public void setPublicKey() throws jxta.security.exceptions.CryptoException; public void setPublicKey(Object publickeyData) throws jxta.security.exceptions.CryptoException; public void setPublicKey(byte[ ] nModulus) throws jxta.security.exceptions.CryptoException; // Methods Implementing Description public void clearDebug(); public String getAlgorithmName(); // default:"NullRSA” public void setDebug(); }
Read now
Unlock full access