Class JWKCLI
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
- org.oa4mp.server.admin.tools.oauth2.myproxy.JWKCLI
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.util.cli.Commands
,edu.uiuc.ncsa.security.util.cli.ComponentManager
public class JWKCLI extends edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
Top-level class for the JWT and JWK command line utilities. This lets you create keys, create id tokens sign them, verify them etc.Created by Jeff Gaynor
on 5/6/19 at 2:37 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DUMMY_FUNCTION
static String
LONG_HELP_FLAG
static String
LONG_NO_OUTPUT_FLAG
static String
LONG_VERBOSE_FLAG
static String
SHORT_HELP_FLAG
static String
SHORT_NO_OUTPUT_FLAG
static String
SHORT_VERBOSE_FLAG
-
Fields inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
COMMENT_START, COMMENT_START_OPTION, CONFIG_FILE_LONG_OPTION, CONFIG_FILE_OPTION, CONFIG_NAME_LONG_OPTION, CONFIG_NAME_OPTION, DEBUG_LONG_OPTION, DEBUG_OPTION, DEFAULT_LOG_FILE, ENV_LONG_OPTION, ENV_OPTION, FILE_SWITCH, HELP_LONG_OPTION, HELP_OPTION, INPUT_OPTION, LOG_FILE_LONG_OPTION, LOG_FILE_OPTION, OUTPUT_OPTION, USE_COMPONENT_LONG_OPTION, USE_COMPONENT_OPTION, VERBOSE_LONG_OPTION, VERBOSE_OPTION
-
-
Constructor Summary
Constructors Constructor Description JWKCLI(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
about()
protected void
batchFileHelp()
void
bootstrap()
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
figureOutLoader(String fileName, String configName)
String
getComponentName()
edu.uiuc.ncsa.security.util.cli.HelpUtil
getHelpUtil()
protected JWKUtilCommands
getJWKCommands(edu.uiuc.ncsa.security.util.cli.CLIDriver cli)
edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
getLoader()
String
getPrompt()
List<String>
listComponents()
static void
main(String[] args)
void
print_help()
protected void
processBatchFile(String fileName, edu.uiuc.ncsa.security.util.cli.CLIDriver cli)
protected void
processBatchModeCommand(edu.uiuc.ncsa.security.util.cli.CLIDriver cli, edu.uiuc.ncsa.security.util.cli.InputLine arg)
void
setLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
protected void
start(String[] args)
void
useHelp()
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
debug, doListNames, error, getCommandLine, getConfigFile, getConfigName, getEnvironment, getGlobalEnv, getIOInterface, getLogfileName, getMyLogger, getOptions, getOptions, hasOption, info, initialize, isDebugOn, isVerbose, listConfigs, listXMLConfigs, load, loadConfig, padLineWithBlanks, parseCommandLine, readEnv, say, sayv, setConfigFile, setConfigName, setDebugOn, setEnvironment, setIOInterface, setLogfileName, setMyLogger, setVerbose, showHelp, showLoadHelp, trace, use, warn
-
-
-
-
Field Detail
-
DUMMY_FUNCTION
protected static String DUMMY_FUNCTION
-
SHORT_HELP_FLAG
public static String SHORT_HELP_FLAG
-
LONG_HELP_FLAG
public static String LONG_HELP_FLAG
-
SHORT_VERBOSE_FLAG
public static String SHORT_VERBOSE_FLAG
-
LONG_VERBOSE_FLAG
public static String LONG_VERBOSE_FLAG
-
SHORT_NO_OUTPUT_FLAG
public static String SHORT_NO_OUTPUT_FLAG
-
LONG_NO_OUTPUT_FLAG
public static String LONG_NO_OUTPUT_FLAG
-
-
Method Detail
-
getHelpUtil
public edu.uiuc.ncsa.security.util.cli.HelpUtil getHelpUtil()
-
about
public void about()
-
print_help
public void print_help() throws Exception
- Specified by:
print_help
in interfaceedu.uiuc.ncsa.security.util.cli.Commands
- Overrides:
print_help
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
- Throws:
Exception
-
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.ConfigurableCommandsImpl
-
getPrompt
public String getPrompt()
-
getComponentName
public String getComponentName()
- Specified by:
getComponentName
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
useHelp
public void useHelp()
- Specified by:
useHelp
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
getJWKCommands
protected JWKUtilCommands getJWKCommands(edu.uiuc.ncsa.security.util.cli.CLIDriver cli)
-
processBatchModeCommand
protected void processBatchModeCommand(edu.uiuc.ncsa.security.util.cli.CLIDriver cli, edu.uiuc.ncsa.security.util.cli.InputLine arg) throws Exception
- Throws:
Exception
-
batchFileHelp
protected void batchFileHelp()
-
processBatchFile
protected void processBatchFile(String fileName, edu.uiuc.ncsa.security.util.cli.CLIDriver cli) throws Throwable
- 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.ConfigurableCommandsImpl
-
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.ConfigurableCommandsImpl
- Throws:
Throwable
-
-