|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.AbstractAlgorithm
edu.vt.middleware.crypt.AbstractEncryptionAlgorithm
edu.vt.middleware.crypt.asymmetric.AsymmetricAlgorithm
public class AsymmetricAlgorithm
Provides asymmetric encryption and decryption operations using a public/private key pair.
| Field Summary | |
|---|---|
static String |
MODE
Mode used for encryption and decryption. |
static String |
PADDING
Padding used for encryption and decryption. |
| Fields inherited from class edu.vt.middleware.crypt.AbstractEncryptionAlgorithm |
|---|
cipher, cipherMode, key, mode, padding |
| Fields inherited from class edu.vt.middleware.crypt.AbstractAlgorithm |
|---|
algorithm, logger, randomByteSize, randomProvider |
| Constructor Summary | |
|---|---|
protected |
AsymmetricAlgorithm(String cipherAlgorithm)
Creates a new instance that uses a cipher of the given algorithm and the default mode and padding. |
| Method Summary | |
|---|---|
Object |
clone()
|
protected AlgorithmParameterSpec |
getAlgorithmParameterSpec()
Gets the algorithm parameter specification for this algorithm. |
protected int |
getChunkSize()
Gets the chunk size for buffers using in stream-based encryption and decryption operations. |
static AsymmetricAlgorithm |
newInstance(String algorithm)
Creates a new instance that uses a cipher of the given name. |
| Methods inherited from class edu.vt.middleware.crypt.AbstractEncryptionAlgorithm |
|---|
crypt, crypt, decrypt, decrypt, decrypt, encrypt, encrypt, encrypt, getBlockSize, getCipherMode, getMode, getPadding, init, initCipher, initDecrypt, initEncrypt, setKey, toString |
| Methods inherited from class edu.vt.middleware.crypt.AbstractAlgorithm |
|---|
getAlgorithm, getRandomData, setRandomProvider |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.vt.middleware.crypt.Algorithm |
|---|
getAlgorithm, getRandomData, setRandomProvider |
| Field Detail |
|---|
public static final String MODE
public static final String PADDING
| Constructor Detail |
|---|
protected AsymmetricAlgorithm(String cipherAlgorithm)
cipherAlgorithm - Cipher algorithm name.| Method Detail |
|---|
public static AsymmetricAlgorithm newInstance(String algorithm)
algorithm - Cipher algorithm name.
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionprotected AlgorithmParameterSpec getAlgorithmParameterSpec()
getAlgorithmParameterSpec in class AbstractEncryptionAlgorithmprotected int getChunkSize()
getChunkSize in class AbstractEncryptionAlgorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||