JXTA

jxta.security.publickey
Interface PublicKeyAlgorithm


public interface PublicKeyAlgorithm
extends Description


Field Summary
static java.lang.String name
           
 
Method Summary
 byte[] Algorithm(byte[] data, int offset, int length, byte type, boolean encrypt)
          The Algorithm: Encrypt | decrypt, encrypt == true | false
 int getEncryptionBlockLength()
           
 int getMaxInputDataBlockLength()
           
 java.lang.Object getPrivatekey()
           
 java.lang.Object getPublickey()
           
 void reset()
           
 void setPrivateKey()
           
 void setPrivateKey(java.lang.Object privatekeyData)
           
 void setPublicKey()
           
 void setPublicKey(byte[] nModulus)
           
 void setPublicKey(java.lang.Object publickeyData)
           
 
Methods inherited from interface jxta.security.util.Description
clearDebug, getAlgorithmName, setDebug
 

Field Detail

name

public static final java.lang.String name
Method Detail

reset

public void reset()

getMaxInputDataBlockLength

public int getMaxInputDataBlockLength()

getEncryptionBlockLength

public int getEncryptionBlockLength()

setPublicKey

public void setPublicKey()
                  throws CryptoException

setPublicKey

public void setPublicKey(java.lang.Object publickeyData)
                  throws CryptoException

setPublicKey

public void setPublicKey(byte[] nModulus)
                  throws CryptoException

setPrivateKey

public void setPrivateKey()
                   throws CryptoException

setPrivateKey

public void setPrivateKey(java.lang.Object privatekeyData)
                   throws CryptoException

getPublickey

public java.lang.Object getPublickey()
                              throws CryptoException

getPrivatekey

public java.lang.Object getPrivatekey()
                               throws CryptoException

Algorithm

public byte[] Algorithm(byte[] data,
                        int offset,
                        int length,
                        byte type,
                        boolean encrypt)
                 throws CryptoException
The Algorithm: Encrypt | decrypt, encrypt == true | false

JXTA