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(expectedExceptions = CmsException.class)
      /** make sure we fail in the event env is not set up*/
      public void badDESEnvTest() throws Exception {
          CmsCryptoDES crypto1 = new CmsCryptoDES();
          try {
              crypto1.init();
          } catch (FileNotFoundException e) {
  
              throw new CmsException(33, "File not found, likely a devbox, throwing CmsException");
          }
      }
test_case.class_method_signature: CmsCryptoDESTest.badDESEnvTest()
test_case.full_signature: @Test(expectedExceptions = CmsException.class) /** make sure we fail in the event env is not set up*/ public void badDESEnvTest()
test_case.identifier: badDESEnvTest
test_case.invocations: init
test_case.modifiers: @Test(expectedExceptions = CmsException.class) /** make sure we fail in the event env is not set up*/ public
test_case.parameters: ()
test_case.return: void
test_case.signature: void badDESEnvTest()
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: public void init() throws IOException, GeneralSecurityException {
          Security.addProvider(new BouncyCastleProvider());
          this.secretKeyFile = System.getenv("CMS_DES_PEM");
          if (this.secretKeyFile == null) {
              this.secretKeyFile = System.getProperty("com.kloopz.crypto.cms_des_pem");
          }
  
          if (this.secretKeyFile == null) {
              logger.error(">>>>>>>>>>>>>>Failed to init DES Encryptor/Decryptor no key faile is set, use CMS_DES_PEM env var to set location!");
              throw new FileNotFoundException("Failed to init DES Encryptor/Decryptor no key faile is set, use CMS_DES_PEM env var to set location!");
          }
          initEncryptorDecryptor();
      }
focal_method.class_method_signature: CmsCryptoDES.init()
focal_method.full_signature: public void init()
focal_method.identifier: init
focal_method.invocations: addProvider getenv getProperty error initEncryptorDecryptor
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void init()