public abstract class AuthenticatedCommand extends CLICommandBase
Constructor and Description |
---|
AuthenticatedCommand() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAdminID() |
protected String |
getAdminPassword() |
protected SSOToken |
getAdminSSOToken() |
void |
handleRequest(RequestContext rc)
Authenticates the administrator.
|
protected void |
ldapLogin() |
protected Map<String,Set<String>> |
processFileAttributes(Map<String,Set<String>> attrs)
Post-process any attributes specified for the module instance (either via data file or on the command line) to
resolve any file references.
|
protected void |
writeLog(int type,
Level level,
String msgid,
String... msgdata) |
debugError, debugError, debugMessage, debugWarning, getCommandManager, getOutputWriter, getResourceString, getStringOptionValue, getStringOptionValue, isOptionSet, isVerbose, tokenize
protected SSOToken ssoToken
public void handleRequest(RequestContext rc) throws CLIException
handleRequest(RequestContext rc)
.
Override this method to get user name and passowrd.handleRequest
in interface CLICommand
handleRequest
in class CLICommandBase
rc
- Request Context.CLIException
- if authentication fails.protected String getAdminPassword()
protected String getAdminID()
protected SSOToken getAdminSSOToken()
protected void ldapLogin() throws CLIException
CLIException
protected void writeLog(int type, Level level, String msgid, String... msgdata) throws CLIException
writeLog
in class CLICommandBase
CLIException
protected Map<String,Set<String>> processFileAttributes(Map<String,Set<String>> attrs) throws CLIException
attrs
- the raw attributes read from the command line and/or data file.CLIException
- if a referenced file cannot be read or if an attribute is specified both normally and using
a -file reference.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.