EncryptorImpl Class
- public class EncryptorImpl
extends SessionImpl
The EncryptorImpl
is the implementation used by the Encryptor
service.
Encryption does not require that the server be in a consistent state. This ensures that
data gets encrypted and stored and in turn orders go through by default.
Related Topics
Encryptor
EncryptorHome
-
Hierarchy
-
Object
SessionImpl
EncryptorImpl
-
All Implemented Interfaces
-
EnterpriseBean
, Serializable
, SessionBean
Methods from com.beasys.commerce.foundation.SessionImpl |
clearRelationalBinding , clearRelationalBinding , clearRelationalBinding , clearRelationalBinding , doRelationalBinding , doRelationalBinding , doRelationalBindingOnElement , doRelationalBindingOnElement , doRelationalBindingOnElement , doRelationalBindingOnSingleton , doRelationalBindingOnSingleton , doRelationalBindingOnSingleton , doRelationalBindingWithMapKey , doRelationalBindingWithMapKey , doRelationalBindingWithMapKey , enumerateRelationalBinding , enumerateRelationalBinding , getEnvironmentNamingContext , getEnvironmentProperty , getEnvironmentProperty , getEnvironmentPropertyCache , getPersistenceHelperPlugin , getSessionContext ,
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptorImpl
public EncryptorImpl()
ejbActivate() Method
public void ejbActivate()
throws EJBException
Description copied from SessionImpl.ejbActivate()
ejbActivate method.
-
Overrides
-
SessionImpl.ejbActivate()
Exceptions
-
EJBException
ejbCreate() Method
public void ejbCreate()
throws CreateException
Description copied from SessionImpl.ejbCreate()
ejbCreate method.
-
Overrides
-
SessionImpl.ejbCreate()
Exceptions
-
CreateException
ejbPassivate() Method
public void ejbPassivate()
throws EJBException
Description copied from SessionImpl.ejbPassivate()
ejbPassivate method.
-
Overrides
-
SessionImpl.ejbPassivate()
Exceptions
-
EJBException
ejbPostCreate() Method
public void ejbPostCreate()
throws CreateException
Description copied from SessionImpl.ejbPostCreate()
ejbPostCreate method.
-
Overrides
-
SessionImpl.ejbPostCreate()
Exceptions
-
CreateException
ejbRemove() Method
public void ejbRemove()
throws EJBException
Description copied from SessionImpl.ejbRemove()
ejbRemove method.
-
Overrides
-
SessionImpl.ejbRemove()
Exceptions
-
EJBException
encrypt(String) Method
public String
encrypt(String
dataToEncrypt)
throws InconsistentStateException
Takes string of data to encrypt and returns a string of encrypted data.
The encryption process involves getting an instance of the KeyFactory and
retrieving the public key from it. The encrypted data, which is really a
sequence of bytes is then base-64 encoded to convert it to a byte sequence
that can be easily persisted.
Parameters
-
dataToEncrypt
- The encrypted string that needs to be decrypted.
Returns
- s string of decrypted data.
Exceptions
-
InconsistentStateException
- if the server is not initialized with decryption password.
setSessionContext(SessionContext) Method
public void setSessionContext(SessionContext
ctx)
throws EJBException
Description copied from SessionImpl.setSessionContext(SessionContext)
setSessionContext method.
-
Overrides
-
SessionImpl.setSessionContext(SessionContext)
Exceptions
-
EJBException