public class AdminTokenAction extends Object implements PrivilegedAction<SSOToken>
java.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 in serverconfig.xml
if the code runs on server
site. 2. If #1 fails, it implies the client is using remote SDK. If
com.sun.identity.security.AdminToken
is specified in
AMConfig.properties
, we will call this application token
provider plug-in to retrieve the single sign on token. 3. If #2 fails, we
look for com.sun.identity.agents.app.username
and
com.iplanet.am.service.password
in
AMConfig.properties
, if so, we will generate single sign
token of administrator based on the user name and password. 4. If #3 fails,
we look for com.sun.identity.agents.app.username
and
com.iplanet.am.service.secret
in
AMConfig.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 property com.sun.identity.security.checkcaller
to
true in AMConfig.properties
file.
Modifier and Type | Field and Description |
---|---|
static String |
AMADMIN_MODE |
static String |
VALIDATE_SESSION |
Modifier and Type | Method and Description |
---|---|
void |
authenticationInitialized()
Informs AdminTokenAction that Authentication has been initialized
This class will start using Authentication service to obtain
SSOToken for admin users
|
static AdminTokenAction |
getInstance()
Returns a cached instance
AdminTokenAction . |
static void |
invalid()
Resets cached SSOToken.
|
static void |
reset()
Resets cached SSOToken.
|
SSOToken |
run() |
public static final String AMADMIN_MODE
public static final String VALIDATE_SESSION
public static AdminTokenAction getInstance()
AdminTokenAction
.AdminTokenAction
.public void authenticationInitialized()
public static void invalid()
public static void reset()
public SSOToken run()
run
in interface PrivilegedAction<SSOToken>
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.