|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.beasys.commerce.foundation.SessionImpl
com.beasys.commerce.ebusiness.security.DecryptorImpl
public class 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| Field Summary |
|---|
| Fields inherited from class com.beasys.commerce.foundation.SessionImpl |
|---|
_ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty |
| Constructor Summary | |
|---|---|
DecryptorImpl()
|
|
| Method Summary | |
|---|---|
String |
decrypt(String dataToDecrypt)
Takes a byte string of data to decrypt and returns a string of plain text. |
void |
ejbActivate()
ejbActivate method. |
void |
ejbCreate()
ejbCreate method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate()
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove method. |
void |
setSessionContext(SessionContext ctx)
setSessionContext method. |
| 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 CreateException
SessionImpl
ejbCreate in class SessionImplCreateException
public void ejbPostCreate()
throws CreateException
SessionImpl
ejbPostCreate in class SessionImplCreateException
public void ejbActivate()
throws EJBException
SessionImpl
ejbActivate in class SessionImplEJBException
public void ejbPassivate()
throws EJBException
SessionImpl
ejbPassivate in class SessionImplEJBException
public void ejbRemove()
throws EJBException
SessionImpl
ejbRemove in class SessionImplEJBException
public void setSessionContext(SessionContext ctx)
throws EJBException
SessionImpl
setSessionContext in class SessionImplEJBException
public String decrypt(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.
InconsistentStateException - if the server is not initialized with decryption password.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||