Package com.sun.identity.security
Class DecryptAction
- java.lang.Object
 - 
- com.sun.identity.security.DecryptAction
 
 
- 
- All Implemented Interfaces:
 PrivilegedAction
@SupportedAll public class DecryptAction extends Object implements PrivilegedAction
The class is used to perform privileged operation withAccessController.doPrivileged()when usingcom.iplanet.am.util.AMPasswordUtilto decrypt passwords. Ths class implements the interfacePrivilegedActionwith a non-default constructor. This class should be used in order to perform the privileged operation ofcom.iplanet.am.util.AMPasswordUtil.decrypt().This line of code: String encStr = com.iplanet.am.util.AMPasswordUtil.decrypt(str); should be replaced with: String encStr = (String) AccessController.doPrivileged( new DecryptAction(str)); If this is not done and Java security permissions check is enabled, then the operation will fail and return a null everytime. Note: Java security permissions check for OpenAM can be enabled by setting the property
com.sun.identity.security.checkcallerto true in AMConfig properties file. 
- 
- 
Constructor Summary
Constructors Constructor Description DecryptAction(String svalue)Non default constructor to be used when adoPrivileged()is performed for the decryption operations. 
 - 
 
- 
- 
Field Detail
- 
value
protected String value
 
 - 
 
- 
Constructor Detail
- 
DecryptAction
public DecryptAction(String svalue)
Non default constructor to be used when adoPrivileged()is performed for the decryption operations.- Parameters:
 svalue- Value of string to be encoded/decoded
 
 - 
 
- 
Method Detail
- 
run
public Object run()
- Specified by:
 runin interfacePrivilegedAction
 
 - 
 
 -