test_class.declarator: expectedException = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException expectedException = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedException
test_class.declarator: CSV_INJECTION_ERROR_MSG = "One or more schema column fields start with a prohibited character."
test_class.modifier: private static final
test_class.original_string: private static final String CSV_INJECTION_ERROR_MSG = "One or more schema column fields start with a prohibited character.";
test_class.type: String
test_class.var_name: CSV_INJECTION_ERROR_MSG
test_class.file: herd-code/herd-core/src/test/java/org/finra/herd/core/HerdStringUtilsTest.java
test_class.identifier: HerdStringUtilsTest
test_class.superclass: extends AbstractCoreTest
test_case.body: @Test
      public void testDecodeBase64()
      {
          // Test decode using hard coded values.
          assertEquals("UT_SomeText", HerdStringUtils.decodeBase64("VVRfU29tZVRleHQ="));
  
          // Test decode using random string and encoder.
          String encodedText = StringUtils.toEncodedString(Base64.getEncoder().encode(STRING_VALUE.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8);
          assertEquals(STRING_VALUE, HerdStringUtils.decodeBase64(encodedText));
      }
test_case.class_method_signature: HerdStringUtilsTest.testDecodeBase64()
test_case.full_signature: @Test public void testDecodeBase64()
test_case.identifier: testDecodeBase64
test_case.invocations: assertEquals decodeBase64 toEncodedString encode getEncoder getBytes assertEquals decodeBase64
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDecodeBase64()
focal_class.declarator: CSV_INJECTION_REGEX = "^[+=@-].*"
focal_class.modifier: private static final
focal_class.original_string: private static final String CSV_INJECTION_REGEX = "^[+=@-].*";
focal_class.type: String
focal_class.var_name: CSV_INJECTION_REGEX
focal_class.declarator: HIDDEN_TEXT = "hidden"
focal_class.modifier: public static final
focal_class.original_string: public static final String HIDDEN_TEXT = "hidden";
focal_class.type: String
focal_class.var_name: HIDDEN_TEXT
focal_class.declarator: REGEX_JSON_PASSWORD =
          Pattern.compile("(\\\\?\"?password\\\\?\":\\\\?\")[\\w\\p{Punct}&&[^&]]*?(\\\\?\")", Pattern.CASE_INSENSITIVE)
focal_class.modifier: private static
focal_class.original_string: private static Pattern REGEX_JSON_PASSWORD =
          Pattern.compile("(\\\\?\"?password\\\\?\":\\\\?\")[\\w\\p{Punct}&&[^&]]*?(\\\\?\")", Pattern.CASE_INSENSITIVE);
focal_class.type: Pattern
focal_class.var_name: REGEX_JSON_PASSWORD
focal_class.declarator: REGEX_JSON_PASSWORD2 =
          Pattern.compile("(\"name\": \".*?password\", \"value\": \")[\\w\\p{Punct}&&[^&]]*?\"", Pattern.CASE_INSENSITIVE)
focal_class.modifier: private static
focal_class.original_string: private static Pattern REGEX_JSON_PASSWORD2 =
          Pattern.compile("(\"name\": \".*?password\", \"value\": \")[\\w\\p{Punct}&&[^&]]*?\"", Pattern.CASE_INSENSITIVE);
focal_class.type: Pattern
focal_class.var_name: REGEX_JSON_PASSWORD2
focal_class.declarator: REGEX_XML_PASSWORD = Pattern.compile("(<.*?password>)[\\w\\p{Punct}&&[^&]]*?<", Pattern.CASE_INSENSITIVE)
focal_class.modifier: private static
focal_class.original_string: private static Pattern REGEX_XML_PASSWORD = Pattern.compile("(<.*?password>)[\\w\\p{Punct}&&[^&]]*?<", Pattern.CASE_INSENSITIVE);
focal_class.type: Pattern
focal_class.var_name: REGEX_XML_PASSWORD
focal_class.file: herd-code/herd-core/src/main/java/org/finra/herd/core/HerdStringUtils.java
focal_class.identifier: HerdStringUtils
focal_class.class_method_signature: HerdStringUtils.decodeBase64(String base64EncodedText)
focal_class.full_signature: public static String decodeBase64(String base64EncodedText)
focal_class.identifier: decodeBase64
focal_class.modifiers: public static
focal_class.parameters: (String base64EncodedText)
focal_class.return: String
focal_class.signature: String decodeBase64(String base64EncodedText)
focal_class.class_method_signature: HerdStringUtils.getShortDescription(String description, Integer shortDescMaxLength)
focal_class.full_signature: public static String getShortDescription(String description, Integer shortDescMaxLength)
focal_class.identifier: getShortDescription
focal_class.modifiers: public static
focal_class.parameters: (String description, Integer shortDescMaxLength)
focal_class.return: String
focal_class.signature: String getShortDescription(String description, Integer shortDescMaxLength)
focal_class.class_method_signature: HerdStringUtils.stripHtml(String fragment, String... whitelistTags)
focal_class.full_signature: public static String stripHtml(String fragment, String... whitelistTags)
focal_class.identifier: stripHtml
focal_class.modifiers: public static
focal_class.parameters: (String fragment, String... whitelistTags)
focal_class.return: String
focal_class.signature: String stripHtml(String fragment, String... whitelistTags)
focal_class.class_method_signature: HerdStringUtils.checkCsvInjection(String text, String errorMessage)
focal_class.full_signature: public static void checkCsvInjection(String text, String errorMessage)
focal_class.identifier: checkCsvInjection
focal_class.modifiers: public static
focal_class.parameters: (String text, String errorMessage)
focal_class.return: void
focal_class.signature: void checkCsvInjection(String text, String errorMessage)
focal_class.class_method_signature: HerdStringUtils.convertStringToInteger(final String stringValue, final Integer defaultValue)
focal_class.full_signature: public static Integer convertStringToInteger(final String stringValue, final Integer defaultValue)
focal_class.identifier: convertStringToInteger
focal_class.modifiers: public static
focal_class.parameters: (final String stringValue, final Integer defaultValue)
focal_class.return: Integer
focal_class.signature: Integer convertStringToInteger(final String stringValue, final Integer defaultValue)
focal_class.class_method_signature: HerdStringUtils.sanitizeLogText(String loggingText)
focal_class.full_signature: public static String sanitizeLogText(String loggingText)
focal_class.identifier: sanitizeLogText
focal_class.modifiers: public static
focal_class.parameters: (String loggingText)
focal_class.return: String
focal_class.signature: String sanitizeLogText(String loggingText)
focal_method.body: public static String decodeBase64(String base64EncodedText)
      {
          return StringUtils.toEncodedString(Base64.getDecoder().decode(base64EncodedText.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8);
      }
focal_method.class_method_signature: HerdStringUtils.decodeBase64(String base64EncodedText)
focal_method.full_signature: public static String decodeBase64(String base64EncodedText)
focal_method.identifier: decodeBase64
focal_method.invocations: toEncodedString decode getDecoder getBytes
focal_method.modifiers: public static
focal_method.parameters: (String base64EncodedText)
focal_method.return: String
focal_method.signature: String decodeBase64(String base64EncodedText)