Encryptor Interface
- public interface Encryptor
extends Session
The Encryptor
is a Stateless Session EJB that provides encryption services.
Related Topics
EncryptorHome
EncryptorImpl
-
All Superinterfaces
-
BusinessSmartComponent
, EJBObject
, Remote
, Serializable
, Session
public String |
-
encrypt (String dataToEncrypt)
- Takes a string of data to encrypt and returns a string of encryted data.
|
encrypt(String) Method
public String
encrypt(String
dataToEncrypt)
throws RemoteException
, InconsistentStateException
Takes a string of data to encrypt and returns a string of encryted data.
Parameters
-
dataToEncrypt
- The string that needs to be encrypted.
Returns
- a string of encrypted data.
Exceptions
-
RemoteException
- if there is a remote error.
-
InconsistentStateException
- if the service implementation is not appropriately initialized.