test_class.declarator: crypto
test_class.modifier: private
test_class.original_string: private CmsCryptoDES crypto;
test_class.type: CmsCryptoDES
test_class.var_name: crypto
test_class.declarator: rawString = UUID.randomUUID().toString()
test_class.modifier: private
test_class.original_string: private String rawString = UUID.randomUUID().toString();
test_class.type: String
test_class.var_name: rawString
test_class.declarator: encryptedString
test_class.modifier: private
test_class.original_string: private String encryptedString;
test_class.type: String
test_class.var_name: encryptedString
test_class.file: cmsdal/src/test/java/com/oneops/cms/crypto/CmsCryptoDESTest.java
test_class.identifier: CmsCryptoDESTest
test_case.body: @Test
      public void testEmptyString() throws Exception {
          String decryptedText = crypto.decrypt(CmsCrypto.ENC_PREFIX);
          Assert.assertTrue(StringUtils.EMPTY.equals(decryptedText));
      }
test_case.class_method_signature: CmsCryptoDESTest.testEmptyString()
test_case.full_signature: @Test public void testEmptyString()
test_case.identifier: testEmptyString
test_case.invocations: decrypt assertTrue equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEmptyString()
focal_class.declarator: secretKeyFile
focal_class.modifier: private
focal_class.original_string: private String secretKeyFile;
focal_class.type: String
focal_class.var_name: secretKeyFile
focal_class.declarator: logger = Logger.getLogger(CmsCryptoDES.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger.getLogger(CmsCryptoDES.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: MIN_DES_FILE_LENGTH = 10
focal_class.modifier: private static final
focal_class.original_string: private static final int MIN_DES_FILE_LENGTH = 10;
focal_class.type: int
focal_class.var_name: MIN_DES_FILE_LENGTH
focal_class.declarator: keyParameter = null
focal_class.modifier: private
focal_class.original_string: private KeyParameter keyParameter = null;
focal_class.type: KeyParameter
focal_class.var_name: keyParameter
focal_class.file: cmsdal/src/main/java/com/oneops/cms/crypto/CmsCryptoDES.java
focal_class.identifier: CmsCryptoDES
focal_class.interfaces: implements CmsCrypto
focal_class.class_method_signature: CmsCryptoDES.encrypt(String instr)
focal_class.full_signature: @Override public String encrypt(String instr)
focal_class.identifier: encrypt
focal_class.modifiers: @Override public
focal_class.parameters: (String instr)
focal_class.return: String
focal_class.signature: String encrypt(String instr)
focal_class.class_method_signature: CmsCryptoDES.decrypt(String instr)
focal_class.full_signature: @Override public String decrypt(String instr)
focal_class.identifier: decrypt
focal_class.modifiers: @Override public
focal_class.parameters: (String instr)
focal_class.return: String
focal_class.signature: String decrypt(String instr)
focal_class.class_method_signature: CmsCryptoDES.decryptVars(String instr)
focal_class.full_signature: @Override public String decryptVars(String instr)
focal_class.identifier: decryptVars
focal_class.modifiers: @Override public
focal_class.parameters: (String instr)
focal_class.return: String
focal_class.signature: String decryptVars(String instr)
focal_class.class_method_signature: CmsCryptoDES.decryptStr(String instr)
focal_class.full_signature: private String decryptStr(String instr)
focal_class.identifier: decryptStr
focal_class.modifiers: private
focal_class.parameters: (String instr)
focal_class.return: String
focal_class.signature: String decryptStr(String instr)
focal_class.class_method_signature: CmsCryptoDES.init()
focal_class.full_signature: public void init()
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: CmsCryptoDES.initEncryptorDecryptor()
focal_class.full_signature: private void initEncryptorDecryptor()
focal_class.identifier: initEncryptorDecryptor
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initEncryptorDecryptor()
focal_class.class_method_signature: CmsCryptoDES.getSecretKeyFromFile()
focal_class.full_signature: private KeyParameter getSecretKeyFromFile()
focal_class.identifier: getSecretKeyFromFile
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: KeyParameter
focal_class.signature: KeyParameter getSecretKeyFromFile()
focal_class.class_method_signature: CmsCryptoDES.generateDESKey(String file)
focal_class.full_signature: public static void generateDESKey(String file)
focal_class.identifier: generateDESKey
focal_class.modifiers: public static
focal_class.parameters: (String file)
focal_class.return: void
focal_class.signature: void generateDESKey(String file)
focal_class.class_method_signature: CmsCryptoDES.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: CmsCryptoDES.setSecretKeyFile(String secretKeyFile)
focal_class.full_signature: public void setSecretKeyFile(String secretKeyFile)
focal_class.identifier: setSecretKeyFile
focal_class.modifiers: public
focal_class.parameters: (String secretKeyFile)
focal_class.return: void
focal_class.signature: void setSecretKeyFile(String secretKeyFile)
focal_class.class_method_signature: CmsCryptoDES.init(String secretKeyFile)
focal_class.full_signature: public void init(String secretKeyFile)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (String secretKeyFile)
focal_class.return: void
focal_class.signature: void init(String secretKeyFile)
focal_method.body: @Override
      public String decrypt(String instr) throws GeneralSecurityException {
          if (instr.startsWith(ENC_PREFIX)) {
              instr = instr.substring(ENC_PREFIX.length());
          }
          return decryptStr(instr);
      }
focal_method.class_method_signature: CmsCryptoDES.decrypt(String instr)
focal_method.full_signature: @Override public String decrypt(String instr)
focal_method.identifier: decrypt
focal_method.invocations: startsWith substring length decryptStr
focal_method.modifiers: @Override public
focal_method.parameters: (String instr)
focal_method.return: String
focal_method.signature: String decrypt(String instr)