Class SigningCommands
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.CommonCommands
-
- org.oa4mp.server.loader.oauth2.util.qdl.SigningCommands
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.util.cli.Commands
public class SigningCommands extends edu.uiuc.ncsa.security.util.cli.CommonCommands
Created by Jeff Gaynor
on 1/6/17 at 9:27 AM
-
-
Field Summary
Fields Modifier and Type Field Description int
defaultSymmetricKeyLength
static String
RS_256
static String
RS_384
static String
RS_512
String
SYMMETRIC_KEY_ARG
String
SYMMETRIC_KEY_COUNT_ARG
String
SYMMETRIC_KEY_FILE_ARG
-
Constructor Summary
Constructors Constructor Description SigningCommands(OA2SE oa2se)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bootstrap()
void
create(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
create_symmetric_keys(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
protected void
createHelp()
static edu.uiuc.ncsa.security.util.jwk.JSONWebKeys
createJsonWebKeys()
This should probably move toJSONWebKeyUtil
.static edu.uiuc.ncsa.security.util.jwk.JSONWebKey
createJWK(String algorithm)
edu.uiuc.ncsa.security.util.cli.HelpUtil
getHelpUtil()
OA2SE
getOa2SE()
String
getPrompt()
protected void
showSymmetricKeyHelp()
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands
clear_env, clearEnvHelp, debug, echo, echoHelp, error, get_env, getBufferedReader, getDriver, getInput, getIoInterface, getPlaceHolder, getPropertyHelp, getValue, gracefulExit, indentWidth, info, isBatch, isBatchFile, isBatchMode, isDebugOn, isEmpty, isOk, isPrintOuput, isVerbose, logit, print_env, print_help, printEnvHelp, printGetEnvHelp, printReadEnvHelp, printSaveEnvHelp, printSetEnvHelp, read_env, readFile, readJSON, readline, readline, save_env, say, say, say2, sayi, sayii, sayv, set_env, set_output_on, set_verbose_on, setBatchFile, setBatchMode, setBufferedReader, setDebugOn, setDriver, setHelpUtil, setIoInterface, setOuputOnHelp, setPlaceHolder, setPrintOuput, setVerbose, setVerboseHelp, showHelp, version, versionHelp, warn
-
-
-
-
Field Detail
-
RS_256
public static final String RS_256
- See Also:
- Constant Field Values
-
RS_384
public static final String RS_384
- See Also:
- Constant Field Values
-
RS_512
public static final String RS_512
- See Also:
- Constant Field Values
-
defaultSymmetricKeyLength
public int defaultSymmetricKeyLength
-
SYMMETRIC_KEY_ARG
public String SYMMETRIC_KEY_ARG
-
SYMMETRIC_KEY_COUNT_ARG
public String SYMMETRIC_KEY_COUNT_ARG
-
SYMMETRIC_KEY_FILE_ARG
public String SYMMETRIC_KEY_FILE_ARG
-
-
Method Detail
-
bootstrap
public void bootstrap() throws Throwable
- Specified by:
bootstrap
in interfaceedu.uiuc.ncsa.security.util.cli.Commands
- Overrides:
bootstrap
in classedu.uiuc.ncsa.security.util.cli.CommonCommands
- Throws:
Throwable
-
getHelpUtil
public edu.uiuc.ncsa.security.util.cli.HelpUtil getHelpUtil()
- Specified by:
getHelpUtil
in interfaceedu.uiuc.ncsa.security.util.cli.Commands
- Overrides:
getHelpUtil
in classedu.uiuc.ncsa.security.util.cli.CommonCommands
-
getOa2SE
public OA2SE getOa2SE()
-
getPrompt
public String getPrompt()
-
createHelp
protected void createHelp()
-
create
public void create(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Exception
- Throws:
Exception
-
createJsonWebKeys
public static edu.uiuc.ncsa.security.util.jwk.JSONWebKeys createJsonWebKeys() throws NoSuchProviderException, NoSuchAlgorithmException
This should probably move toJSONWebKeyUtil
.- Returns:
- Throws:
NoSuchProviderException
NoSuchAlgorithmException
-
showSymmetricKeyHelp
protected void showSymmetricKeyHelp()
-
create_symmetric_keys
public void create_symmetric_keys(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
-
createJWK
public static edu.uiuc.ncsa.security.util.jwk.JSONWebKey createJWK(String algorithm) throws NoSuchProviderException, NoSuchAlgorithmException
-
-