Class OA2Commands
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
-
- edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
-
- org.oa4mp.server.admin.oauth2.base.BaseCommands2
-
- org.oa4mp.server.admin.oauth2.tools.OA2Commands
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.util.cli.Commands
,edu.uiuc.ncsa.security.util.cli.ComponentManager
,Serializable
public class OA2Commands extends BaseCommands2
Created by Jeff Gaynor
on 4/3/14 at 1:23 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADMINS
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
loader
static String
PERMISSIONS
static String
TOKENS
static String
VIRTUAL_ISSUER
-
Fields inherited from class org.oa4mp.server.admin.oauth2.base.BaseCommands2
CLIENT_APPROVALS, CLIENTS, COPY, drivers, logoName, showHeader, showLogo, TRANSACTION_COMMAND
-
-
Constructor Summary
Constructors Constructor Description OA2Commands(edu.uiuc.ncsa.security.util.cli.CLIDriver driver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
about()
void
about(boolean showBanner, boolean showHeader)
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
figureOutLoader(String fileName, String configName)
OA2AdminClientCommands
getAdminClientCommands()
ClientStoreCommands
getClientCommands()
protected ArrayList<String>
getCommandCompletions()
This snoops through all components and gloms every call together.CopyCommands
getCopyCommands()
edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
getLoader()
String
getName()
OA2PermissionCommands
getPermissionCommands()
String
getPrompt()
protected TokenStoreCommands
getTokenCommands()
protected TransactionStoreCommands
getTransactionCommands()
protected VICommands
getVICommands()
void
initialize()
static void
main(String[] args)
protected static void
newMain(String[] args)
void
setLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
protected static void
setupSAS(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
boolean
use(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
useHelp()
-
Methods inherited from class org.oa4mp.server.admin.oauth2.base.BaseCommands2
createCLIDriver, getClientApprovalCommands, getComponentName, getServiceEnvironment, hasComponent, listComponents, runComponent, startup
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
bootstrap, doListNames, getConfigFile, getConfigName, getEnvironment, initHelp, listConfigs, listXMLConfigs, load, loadConfig, setConfigFile, setConfigName, setDriver, setEnvironment, showLoadHelp, switchOrRun
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
bootstrap, clear_env, clearEnvHelp, debug, error, error, get_env, getDriver, getHelpUtil, getInput, getIOInterface, getLogoName, getPropertyHelp, gracefulExit, hasLogger, indentWidth, info, isDebugOn, isOk, isShowHeader, isShowLogo, print_env, printEnvHelp, printGetEnvHelp, printReadEnvHelp, printSaveEnvHelp, printSetEnvHelp, read_env, readJSON, readline, readline, save_env, say, say, sayi, sayv, set_env, setDebugOn, setLogoName, setShowHeader, setShowLogo, showHelp, warn
-
-
-
-
Field Detail
-
PERMISSIONS
public static final String PERMISSIONS
- See Also:
- Constant Field Values
-
ADMINS
public static final String ADMINS
- See Also:
- Constant Field Values
-
TOKENS
public static final String TOKENS
- See Also:
- Constant Field Values
-
VIRTUAL_ISSUER
public static final String VIRTUAL_ISSUER
- See Also:
- Constant Field Values
-
loader
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader
-
-
Method Detail
-
getCommandCompletions
protected ArrayList<String> getCommandCompletions()
This snoops through all components and gloms every call together. This does not result in context-sensitive help, but at least is something.- Returns:
-
initialize
public void initialize()
- Overrides:
initialize
in classBaseCommands2
-
getPrompt
public String getPrompt()
-
getName
public String getName()
-
getLoader
public edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> getLoader()
- Specified by:
getLoader
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
-
main
public static void main(String[] args)
-
newMain
protected static void newMain(String[] args)
-
setupSAS
protected static void setupSAS(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable
- Throws:
Throwable
-
useHelp
public void useHelp()
- Overrides:
useHelp
in classBaseCommands2
-
about
public void about()
- Specified by:
about
in classBaseCommands2
-
about
public void about(boolean showBanner, boolean showHeader)
- Specified by:
about
in classedu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
-
getClientCommands
public ClientStoreCommands getClientCommands() throws Throwable
- Specified by:
getClientCommands
in classBaseCommands2
- Throws:
Throwable
-
getCopyCommands
public CopyCommands getCopyCommands() throws Throwable
- Specified by:
getCopyCommands
in classBaseCommands2
- Throws:
Throwable
-
getTokenCommands
protected TokenStoreCommands getTokenCommands() throws Throwable
- Throws:
Throwable
-
getVICommands
protected VICommands getVICommands() throws Throwable
- Throws:
Throwable
-
getTransactionCommands
protected TransactionStoreCommands getTransactionCommands() throws Throwable
- Specified by:
getTransactionCommands
in classBaseCommands2
- Throws:
Throwable
-
getAdminClientCommands
public OA2AdminClientCommands getAdminClientCommands() throws Throwable
- Throws:
Throwable
-
getPermissionCommands
public OA2PermissionCommands getPermissionCommands() throws Throwable
- Throws:
Throwable
-
use
public boolean use(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable
- Specified by:
use
in interfaceedu.uiuc.ncsa.security.util.cli.ComponentManager
- Overrides:
use
in classBaseCommands2
- Throws:
Throwable
-
setLoader
public void setLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
- Specified by:
setLoader
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
-
figureOutLoader
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> figureOutLoader(String fileName, String configName) throws Throwable
- Specified by:
figureOutLoader
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
- Throws:
Throwable
-
-