Decryptor Interface
- public interface Decryptor
extends Session
The Decryptor
is a Stateless Session EJB that provides decryption services.
The decryptor needs that the implementation it uses to provide its services be in a
consistent state before it can provide decryption services. If decryption services are
requested of the Decryptor
before the implementation is appropriately initialized,
it throws an InconsistentStateException
.
Related Topics
DecryptorHome
DecryptorImpl
-
All Superinterfaces
-
BusinessSmartComponent
, EJBObject
, Remote
, Serializable
, Session
public String |
-
decrypt (String dataToDecrypt)
- Takes a string of data to decrypt and returns a string of plain text.
|
decrypt(String) Method
public String
decrypt(String
dataToDecrypt)
throws RemoteException
, InconsistentStateException
Takes a string of data to decrypt and returns a string of plain text.
Parameters
-
dataToDecrypt
- The encrypted string that needs to be decrypted.
Returns
- a string of decrypted data.
Exceptions
-
RemoteException
- if there is a remote error.
-
InconsistentStateException
- if the service implementation is not appropriately initialized.