public class AdminTokenAction extends Object implements PrivilegedAction<SSOToken>
AccessController.doPrivileged(PrivilegedAction)
when trying to get Application single sign on
token. There are three approaches to get single sign on token:
serverconfig.xml
if the code
runs on server side.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.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.com.sun.identity.security.checkcaller
to true in AMConfig.properties
file.Modifier | Constructor and Description |
---|---|
protected |
AdminTokenAction()
Default constructor
|
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 . |
protected void |
init() |
static void |
invalid()
Resets cached SSOToken.
|
SSOToken |
run() |
protected AdminTokenAction() throws SSOException
SSOException
public static AdminTokenAction getInstance()
AdminTokenAction
.AdminTokenAction
.protected void init() throws SSOException
SSOException
public void authenticationInitialized()
public static void invalid()
public SSOToken run()
run
in interface PrivilegedAction<SSOToken>
Copyright © 2010-2018, ForgeRock All Rights Reserved.