jxta.security.publickey
Interface PublicKeyAlgorithm
- public interface PublicKeyAlgorithm
- extends Description
Field Summary |
static java.lang.String |
name
|
name
public static final java.lang.String name
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