test_class.file: dbfit-java/core/src/test/java/dbfit/util/crypto/CryptoAppTest.java
test_class.identifier: CryptoAppTest
test_class.superclass: extends CryptoAppTestBase
test_case.body: @Test
      public void encryptPasswordTest() throws Exception {
          when(mockedKS.keyStoreExists()).thenReturn(true);
          String password = "Demo Password CLI";
  
          execApp(password);
  
          verify(mockedCryptoService).encrypt(password);
      }
test_case.class_method_signature: CryptoAppTest.encryptPasswordTest()
test_case.full_signature: @Test public void encryptPasswordTest()
test_case.identifier: encryptPasswordTest
test_case.invocations: thenReturn when keyStoreExists execApp encrypt verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void encryptPasswordTest()
focal_class.declarator: EXIT_SUCCESS = 0
focal_class.modifier: public static final
focal_class.original_string: public static final int EXIT_SUCCESS = 0;
focal_class.type: int
focal_class.var_name: EXIT_SUCCESS
focal_class.declarator: EXIT_INVALID_COMMAND = 1
focal_class.modifier: public static final
focal_class.original_string: public static final int EXIT_INVALID_COMMAND = 1;
focal_class.type: int
focal_class.var_name: EXIT_INVALID_COMMAND
focal_class.declarator: EXIT_COMMAND_FAILED = 2
focal_class.modifier: public static final
focal_class.original_string: public static final int EXIT_COMMAND_FAILED = 2;
focal_class.type: int
focal_class.var_name: EXIT_COMMAND_FAILED
focal_class.declarator: ksFactory
focal_class.modifier: private
focal_class.original_string: private CryptoKeyStoreFactory ksFactory;
focal_class.type: CryptoKeyStoreFactory
focal_class.var_name: ksFactory
focal_class.declarator: cryptoServiceFactory
focal_class.modifier: private
focal_class.original_string: private CryptoServiceFactory cryptoServiceFactory;
focal_class.type: CryptoServiceFactory
focal_class.var_name: cryptoServiceFactory
focal_class.declarator: out = System.out
focal_class.modifier: private
focal_class.original_string: private PrintStream out = System.out;
focal_class.type: PrintStream
focal_class.var_name: out
focal_class.file: dbfit-java/core/src/main/java/dbfit/util/crypto/CryptoApp.java
focal_class.identifier: CryptoApp
focal_class.class_method_signature: CryptoApp.CryptoApp(
              CryptoKeyStoreFactory ksFactory, CryptoServiceFactory csFactory)
focal_class.full_signature: public  CryptoApp(
              CryptoKeyStoreFactory ksFactory, CryptoServiceFactory csFactory)
focal_class.identifier: CryptoApp
focal_class.modifiers: public
focal_class.parameters: (
              CryptoKeyStoreFactory ksFactory, CryptoServiceFactory csFactory)
focal_class.signature:  CryptoApp(
              CryptoKeyStoreFactory ksFactory, CryptoServiceFactory csFactory)
focal_class.class_method_signature: CryptoApp.CryptoApp()
focal_class.full_signature: public  CryptoApp()
focal_class.identifier: CryptoApp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CryptoApp()
focal_class.class_method_signature: CryptoApp.updateStatus(String msg)
focal_class.full_signature: private void updateStatus(String msg)
focal_class.identifier: updateStatus
focal_class.modifiers: private
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void updateStatus(String msg)
focal_class.class_method_signature: CryptoApp.createKeyStore(CryptoKeyStore ks)
focal_class.full_signature: private int createKeyStore(CryptoKeyStore ks)
focal_class.identifier: createKeyStore
focal_class.modifiers: private
focal_class.parameters: (CryptoKeyStore ks)
focal_class.return: int
focal_class.signature: int createKeyStore(CryptoKeyStore ks)
focal_class.class_method_signature: CryptoApp.encryptPassword(final String password, final CryptoKeyStore ks)
focal_class.full_signature: private int encryptPassword(final String password, final CryptoKeyStore ks)
focal_class.identifier: encryptPassword
focal_class.modifiers: private
focal_class.parameters: (final String password, final CryptoKeyStore ks)
focal_class.return: int
focal_class.signature: int encryptPassword(final String password, final CryptoKeyStore ks)
focal_class.class_method_signature: CryptoApp.encryptPassword(final String password, final String path)
focal_class.full_signature: private int encryptPassword(final String password, final String path)
focal_class.identifier: encryptPassword
focal_class.modifiers: private
focal_class.parameters: (final String password, final String path)
focal_class.return: int
focal_class.signature: int encryptPassword(final String password, final String path)
focal_class.class_method_signature: CryptoApp.encryptPassword(final String password)
focal_class.full_signature: private int encryptPassword(final String password)
focal_class.identifier: encryptPassword
focal_class.modifiers: private
focal_class.parameters: (final String password)
focal_class.return: int
focal_class.signature: int encryptPassword(final String password)
focal_class.class_method_signature: CryptoApp.showUsage()
focal_class.full_signature: private void showUsage()
focal_class.identifier: showUsage
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void showUsage()
focal_class.class_method_signature: CryptoApp.execute(String[] args)
focal_class.full_signature: public int execute(String[] args)
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: (String[] args)
focal_class.return: int
focal_class.signature: int execute(String[] args)
focal_class.class_method_signature: CryptoApp.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_class.class_method_signature: CryptoApp.getCryptoService(final CryptoKeyStore ks)
focal_class.full_signature: private CryptoService getCryptoService(final CryptoKeyStore ks)
focal_class.identifier: getCryptoService
focal_class.modifiers: private
focal_class.parameters: (final CryptoKeyStore ks)
focal_class.return: CryptoService
focal_class.signature: CryptoService getCryptoService(final CryptoKeyStore ks)
focal_method.body: private int encryptPassword(final String password, final CryptoKeyStore ks)
                                                      throws Exception {
          if (!ks.keyStoreExists()) {
              createKeyStore(ks);
          }
          updateStatus("Using KeyStore: " + ks.getKeyStoreFile());
  
          String encPwd = getCryptoService(ks).encrypt(password);
          updateStatus("Encrypted Password:\nENC(" + encPwd + ")");
  
          return EXIT_SUCCESS;
      }
focal_method.class_method_signature: CryptoApp.encryptPassword(final String password, final CryptoKeyStore ks)
focal_method.full_signature: private int encryptPassword(final String password, final CryptoKeyStore ks)
focal_method.identifier: encryptPassword
focal_method.invocations: keyStoreExists createKeyStore updateStatus getKeyStoreFile encrypt getCryptoService updateStatus
focal_method.modifiers: private
focal_method.parameters: (final String password, final CryptoKeyStore ks)
focal_method.return: int
focal_method.signature: int encryptPassword(final String password, final CryptoKeyStore ks)