Class FilterUtils


  • public final class FilterUtils
    extends Object
    Provides utility methods for this package.
    • Constructor Detail

      • FilterUtils

        private FilterUtils()
        Default constructor.
    • Method Detail

      • escape

        public static String escape​(String s)
        Escapes the supplied string per RFC 4515.
        Parameters:
        s - to escape
        Returns:
        escaped string
      • parseAssertionValue

        public static byte[] parseAssertionValue​(String value)
                                          throws FilterParseException
        Decodes hex characters in the attribute assertion.
        Parameters:
        value - to parse
        Returns:
        assertion value bytes
        Throws:
        FilterParseException - if the value contains \0, ( or )