Package com.kheops.util
Class RsaClientCipher
java.lang.Object
com.kheops.util.RsaClientCipher
- All Implemented Interfaces:
- EncryptionCipher
- 
Constructor SummaryConstructorsConstructorDescriptionRsaClientCipher(byte[] encodedPublicKey) Creates a new cipher client using the specified RSA public key.
- 
Method Summary
- 
Constructor Details- 
RsaClientCipherpublic RsaClientCipher(byte[] encodedPublicKey) Creates a new cipher client using the specified RSA public key.- Parameters:
- encodedPublicKey- a RSA public key.
 
 
- 
- 
Method Details- 
initInitializes the cipher instance.- Specified by:
- initin interface- EncryptionCipher
- Throws:
- Exception
 
- 
encryptEncrypts 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
 
 
-