Name
NullRSA
Synopsis
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(); }
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.