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 StringADMINSprotected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>loaderstatic StringPERMISSIONSstatic StringTOKENSstatic StringVIRTUAL_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 voidabout()voidabout(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)OA2AdminClientCommandsgetAdminClientCommands()ClientStoreCommandsgetClientCommands()protected ArrayList<String>getCommandCompletions()This snoops through all components and gloms every call together.CopyCommandsgetCopyCommands()edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>getLoader()StringgetName()OA2PermissionCommandsgetPermissionCommands()StringgetPrompt()protected TokenStoreCommandsgetTokenCommands()protected TransactionStoreCommandsgetTransactionCommands()protected VICommandsgetVICommands()voidinitialize()static voidmain(String[] args)protected static voidnewMain(String[] args)voidsetLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)protected static voidsetupSAS(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)booleanuse(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)voiduseHelp()-
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:
initializein 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:
getLoaderin 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:
useHelpin classBaseCommands2
-
about
public void about()
- Specified by:
aboutin classBaseCommands2
-
about
public void about(boolean showBanner, boolean showHeader)- Specified by:
aboutin classedu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
-
getClientCommands
public ClientStoreCommands getClientCommands() throws Throwable
- Specified by:
getClientCommandsin classBaseCommands2- Throws:
Throwable
-
getCopyCommands
public CopyCommands getCopyCommands() throws Throwable
- Specified by:
getCopyCommandsin 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:
getTransactionCommandsin 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:
usein interfaceedu.uiuc.ncsa.security.util.cli.ComponentManager- Overrides:
usein 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:
setLoaderin 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:
figureOutLoaderin classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2- Throws:
Throwable
-
-