Class IK
java.lang.Object
org.jpos.q2.cli.ssm.SsmActionBase
org.jpos.q2.cli.ssm.actions.IK
- All Implemented Interfaces:
CLICommand
Import a key from encryption under a KEK to under the LMK.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckUsage(CLIContext cli, String[] strings) Validates the command-line arguments before any side effects, returningfalseto abort the command (the implementation should print its own usage message).protected voiddoCommand(CLIContext cli, JCESecurityModule sm, short keyLength, String[] strings) Performs the actual SSM operation againstsm.Methods inherited from class SsmActionBase
execModifier and TypeMethodDescriptionvoidexec(CLIContext cli, String[] strings) Executes the CLI command.
-
Constructor Details
-
IK
public IK()Default constructor; no instance state to initialise.
-
-
Method Details
-
checkUsage
Description copied from class:SsmActionBaseValidates the command-line arguments before any side effects, returningfalseto abort the command (the implementation should print its own usage message).- Specified by:
checkUsagein classSsmActionBase- Parameters:
cli- CLI contextstrings- command-line tokens- Returns:
truewhen the arguments are acceptable
-
doCommand
protected void doCommand(CLIContext cli, JCESecurityModule sm, short keyLength, String[] strings) throws SMException Description copied from class:SsmActionBasePerforms the actual SSM operation againstsm.- Specified by:
doCommandin classSsmActionBase- Parameters:
cli- CLI contextsm- resolved security modulekeyLength- resolved key length in bitsstrings- command-line tokens- Throws:
SMException- if the security module operation fails
-