Class FilterUtils


  • public final class FilterUtils
    extends java.lang.Object
    Provides utility methods for this package.
    Author:
    Middleware Services
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escape​(java.lang.String s)
      Escapes the supplied string per RFC 4515.
      static byte[] parseAssertionValue​(java.lang.String value)
      Decodes hex characters in the attribute assertion.
      static byte[][] parseAssertionValue​(java.lang.String... value)
      Convenience method for parsing an array of assertion values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • escape

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

        public static byte[][] parseAssertionValue​(java.lang.String... value)
                                            throws FilterParseException
        Convenience method for parsing an array of assertion values. See parseAssertionValue(String).
        Parameters:
        value - array of assertion values
        Returns:
        assertion value bytes
        Throws:
        FilterParseException - if the value contains \0, ( or )
      • parseAssertionValue

        public static byte[] parseAssertionValue​(java.lang.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 )