Package com.kheops.util
Class RsaCipher
java.lang.Object
com.kheops.util.RsaCipher
- All Implemented Interfaces:
- DecryptionCipher,- EncryptionCipher
- 
Field Details- 
PRIVATE_KEY_FILENAME- See Also:
 
- 
PUBLIC_KEY_FILENAME- See Also:
 
 
- 
- 
Constructor Details- 
RsaCipher
 
- 
- 
Method Details- 
initDescription copied from interface:EncryptionCipherInitializes the cipher instance.- Specified by:
- initin interface- DecryptionCipher
- Specified by:
- initin interface- EncryptionCipher
- Throws:
- Exception
 
- 
decryptDescription copied from interface:DecryptionCipherDecrypts the specified data.- Specified by:
- decryptin interface- DecryptionCipher
- Parameters:
- data- the data to decrypt.
- Returns:
- a new byte array that contains decrypted data.
- Throws:
- GeneralSecurityException
 
- 
encryptDescription copied from interface:EncryptionCipherEncrypts the specified data.- Specified by:
- encryptin interface- EncryptionCipher
- Parameters:
- data- the data to encrypt.
- Returns:
- a new byte array that contains encrypted data.
- Throws:
- GeneralSecurityException
 
- 
encrypt- Throws:
- GeneralSecurityException
 
- 
getPublicKeypublic byte[] getPublicKey()
 
-