Package com.sun.identity.security
Class AdminTokenAction
- java.lang.Object
-
- com.sun.identity.security.AdminTokenAction
-
- All Implemented Interfaces:
PrivilegedAction<SSOToken>
@SupportedAll public class AdminTokenAction extends Object implements PrivilegedAction<SSOToken>
Provides a centralised method for fetching an administrator token for operations where there is no user present.Note: Java security permissions check for OpenAM can be enabled by setting the property
com.sun.identity.security.checkcaller
to true inAMConfig.properties
file.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AMADMIN_MODE
-
Constructor Summary
Constructors Constructor Description AdminTokenAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AdminTokenAction
getInstance()
Returns a cached instanceAdminTokenAction
.SSOToken
run()
-
-
-
Field Detail
-
AMADMIN_MODE
public static final String AMADMIN_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AdminTokenAction getInstance()
Returns a cached instanceAdminTokenAction
.- Returns:
- instance of
AdminTokenAction
.
-
run
public SSOToken run()
- Specified by:
run
in interfacePrivilegedAction<SSOToken>
-
-