Package com.sun.identity.security
Class AdminTokenAction
- java.lang.Object
 - 
- com.sun.identity.security.AdminTokenAction
 
 
- 
- All Implemented Interfaces:
 PrivilegedAction<SSOToken>
public class AdminTokenAction extends Object implements PrivilegedAction<SSOToken>
The class is used to perform privileged operations usingjava.security.AccessController.doPrivileged()when trying to get Application single sign on token. There are four approaches to get single sign on token. 1. Return the single sign on token of the administrator configured inserverconfig.xmlif the code runs on server site. 2. If #1 fails, it implies the client is using remote SDK. Ifcom.sun.identity.security.AdminTokenis specified inAMConfig.properties, we will call this application token provider plug-in to retrieve the single sign on token. 3. If #2 fails, we look forcom.sun.identity.agents.app.usernameandcom.iplanet.am.service.passwordinAMConfig.properties, if so, we will generate single sign token of administrator based on the user name and password. 4. If #3 fails, we look forcom.sun.identity.agents.app.usernameandcom.iplanet.am.service.secretinAMConfig.properties. If so, we will generate single sign on token based on the user name and secret. Note: Java security permissions check for OpenAM can be enabled by setting the propertycom.sun.identity.security.checkcallerto true inAMConfig.propertiesfile. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringAMADMIN_MODEstatic StringVALIDATE_SESSION 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticationInitialized()Informs AdminTokenAction that Authentication has been initialized This class will start using Authentication service to obtain SSOToken for admin usersstatic AdminTokenActiongetInstance()Returns a cached instanceAdminTokenAction.static voidinvalid()Resets cached SSOToken.static voidreset()Resets cached SSOToken.SSOTokenrun() 
 - 
 
- 
- 
Field Detail
- 
AMADMIN_MODE
public static final String AMADMIN_MODE
- See Also:
 - Constant Field Values
 
 
- 
VALIDATE_SESSION
public static final String VALIDATE_SESSION
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getInstance
public static AdminTokenAction getInstance()
Returns a cached instanceAdminTokenAction.- Returns:
 - instance of 
AdminTokenAction. 
 
- 
authenticationInitialized
public void authenticationInitialized()
Informs AdminTokenAction that Authentication has been initialized This class will start using Authentication service to obtain SSOToken for admin users 
- 
invalid
public static void invalid()
Resets cached SSOToken. WITHOUT destroying. Called when we know the token is invalid 
- 
reset
public static void reset()
Resets cached SSOToken. 
- 
run
public SSOToken run()
- Specified by:
 runin interfacePrivilegedAction<SSOToken>
 
 - 
 
 -