Class CVV

java.lang.Object
org.jpos.q2.cli.ssm.SsmActionBase
org.jpos.q2.cli.ssm.actions.CVV
All Implemented Interfaces:
CLICommand

public class CVV extends SsmActionBase
Calculate CVV
  • Constructor Details

    • CVV

      public CVV()
      Default constructor; no instance state to initialise.
  • Method Details

    • checkUsage

      protected boolean checkUsage(CLIContext cli, String[] strings)
      Description copied from class: SsmActionBase
      Validates the command-line arguments before any side effects, returning false to abort the command (the implementation should print its own usage message).
      Specified by:
      checkUsage in class SsmActionBase
      Parameters:
      cli - CLI context
      strings - command-line tokens
      Returns:
      true when the arguments are acceptable
    • doCommand

      protected void doCommand(CLIContext cli, JCESecurityModule sm, short keyLength, String[] args) throws SMException
      Description copied from class: SsmActionBase
      Performs the actual SSM operation against sm.
      Specified by:
      doCommand in class SsmActionBase
      Parameters:
      cli - CLI context
      sm - resolved security module
      keyLength - resolved key length in bits
      args - command-line tokens
      Throws:
      SMException - if the security module operation fails