|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.SessionImpl | +--com.beasys.commerce.ebusiness.security.DecryptorImpl
The DecryptorImpl
is the implementation used by the Decryptor
service.
It uses RSA standard private key encryption for the implementation. The server should be in a
consistent state before decryption services can be provided. If decryption services are
requested of the Decryptor
before the server is appropriately initialized,
it throws an InconsistentStateException
.
DecryptorHome
,
DecryptorImpl
, Serialized FormFields inherited from class com.beasys.commerce.foundation.SessionImpl |
_ctx,
_environmentNamingContext,
_environmentPropertyCache,
_isDirty |
Constructor Summary | |
DecryptorImpl()
|
Method Summary | |
java.lang.String |
decrypt(java.lang.String dataToDecrypt)
Takes a byte string of data to decrypt and returns a string of plain text. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbPostCreate()
|
void |
ejbRemove()
|
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DecryptorImpl()
Method Detail |
public void ejbCreate() throws javax.ejb.CreateException
public void ejbPostCreate() throws javax.ejb.CreateException
public void ejbActivate() throws javax.ejb.EJBException
public void ejbPassivate() throws javax.ejb.EJBException
public void ejbRemove() throws javax.ejb.EJBException
public void setSessionContext(javax.ejb.SessionContext ctx) throws javax.ejb.EJBException
public java.lang.String decrypt(java.lang.String dataToDecrypt) throws InconsistentStateException
Encryptor
returned as a result of the encryption process.
This byte sequence is then passed on the decryption routine to get back the
original text. A SystemException
is thrown if the string being
decrypted was encrypted using a public key that is not part of the key pair
that the private key is a part of.
dataToDecrypt
- The encrypted string that needs to be decrypted.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |