Package org.ldaptive.filter
Class FilterUtils
- java.lang.Object
-
- org.ldaptive.filter.FilterUtils
-
public final class FilterUtils extends Object
Provides utility methods for this package.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FilterUtils()
Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
escape(String s)
Escapes the supplied string per RFC 4515.static byte[]
parseAssertionValue(String value)
Decodes hex characters in the attribute assertion.static byte[][]
parseAssertionValue(String... value)
Convenience method for parsing an array of assertion values.
-
-
-
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
Convenience method for parsing an array of assertion values. SeeparseAssertionValue(String)
.- Parameters:
value
- array of assertion values- Returns:
- assertion value bytes
- Throws:
FilterParseException
- if the value contains \0, ( or )
-
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 )
-
-