Class 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

    • Nested Class Summary

      • Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl

        edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl.ListOnlyNotification
    • 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
    • Constructor Detail

      • JWKCLI

        public JWKCLI​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
    • Method Detail

      • getHelpUtil

        public edu.uiuc.ncsa.security.util.cli.HelpUtil getHelpUtil()
      • listComponents

        public List<String> listComponents()
      • about

        public void about()
      • print_help

        public void print_help()
                        throws Exception
        Specified by:
        print_help in interface edu.uiuc.ncsa.security.util.cli.Commands
        Overrides:
        print_help in class edu.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 class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
      • getPrompt

        public String getPrompt()
      • getComponentName

        public String getComponentName()
        Specified by:
        getComponentName in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
      • useHelp

        public void useHelp()
        Specified by:
        useHelp in class edu.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 class edu.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 class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
        Throws:
        Throwable