net.sourceforge.jaulp.crypto.interfaces
Interface SecretCryptor

All Known Subinterfaces:
Decryptor, Encryptor
All Known Implementing Classes:
SimpleDecryptor, SimpleEncryptor

public interface SecretCryptor

Interface for SecretCryptor objects.

Version:
1.0
Author:
Asterios Raptis

Method Summary
 javax.crypto.Cipher getCipher()
          Returns the cipher from the SecretCryptor object.
 java.lang.String getPrivateKey()
          Returns the private key from the SecretCryptor object.
 void setCipher(javax.crypto.Cipher cipher)
          Sets the cipher from the SecretCryptor object.
 void setPrivateKey(java.lang.String privateKey)
          Sets the private key from the SecretCryptor object.
 

Method Detail

getCipher

javax.crypto.Cipher getCipher()
Returns the cipher from the SecretCryptor object.

Returns:
Returns the cipher from the SecretCryptor object.

getPrivateKey

java.lang.String getPrivateKey()
Returns the private key from the SecretCryptor object.

Returns:
Returns the private key from the SecretCryptor object.

setCipher

void setCipher(javax.crypto.Cipher cipher)
Sets the cipher from the SecretCryptor object.

Parameters:
cipher - The cipher to set.

setPrivateKey

void setPrivateKey(java.lang.String privateKey)
Sets the private key from the SecretCryptor object.

Parameters:
privateKey - The private key to set.


Copyright © 2010. All Rights Reserved.