|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hdiv.cipher.MockCipherHTTP
public class MockCipherHTTP
Mock implementation of ICipherHTTP only to tests.
| Constructor Summary | |
|---|---|
MockCipherHTTP()
|
|
| Method Summary | |
|---|---|
byte[] |
decrypt(byte[] data)
Decrypts data in a single-part operation, or finishes a
multiple-part operation. |
java.lang.String |
decrypt(java.lang.String data)
|
byte[] |
encrypt(byte[] data)
Encrypts data in a single-part operation, or finishes a
multiple-part operation. |
java.lang.String |
encrypt(java.lang.String data)
|
java.lang.String |
getAlgorithm()
|
void |
initDecryptMode(Key key)
Generates a Cipher object that implements the specified transformation, initializes cipher vector and initializes
cipher to decryption mode with a key and a set of algorithm parameters. |
void |
initEncryptMode(Key key)
Generates a Cipher object that implements the specified transformation, initializes cipher vector and initializes
cipher to encryption mode with a key and a set of algorithm parameters. |
void |
setAlgorithm(java.lang.String algorithm)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockCipherHTTP()
| Method Detail |
|---|
public java.lang.String decrypt(java.lang.String data)
public java.lang.String encrypt(java.lang.String data)
public byte[] decrypt(byte[] data)
ICipherHTTPdata in a single-part operation, or finishes a
multiple-part operation. The data is decrypted depending on how this cipher
was initialized.
The bytes in the input buffer, and any input bytes that may have been buffered during a previous update operation, are processed, with padding (if requested) being applied. The result is stored in a new buffer.
if any exception is thrown, this cipher object may need to be reset before it can be used again.
decrypt in interface ICipherHTTPdata - The input buffer to decrypt
public byte[] encrypt(byte[] data)
ICipherHTTPdata in a single-part operation, or finishes a
multiple-part operation. The data is encrypted depending on how this cipher
was initialized.
The bytes in the input buffer, and any input bytes that may have been buffered during a previous update operation, are processed, with padding (if requested) being applied. The result is stored in a new buffer.
if any exception is thrown, this cipher object may need to be reset before it can be used again.
encrypt in interface ICipherHTTPdata - The input buffer to encrypt
public void initEncryptMode(Key key)
ICipherHTTPtransformation, initializes cipher vector and initializes
cipher to encryption mode with a key and a set of algorithm parameters.
initEncryptMode in interface ICipherHTTPkey - the encryption keypublic void initDecryptMode(Key key)
ICipherHTTPtransformation, initializes cipher vector and initializes
cipher to decryption mode with a key and a set of algorithm parameters.
initDecryptMode in interface ICipherHTTPkey - the encryption keypublic java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String algorithm)
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||