Package org.ldaptive.filter
Class FilterUtils
- java.lang.Object
-
- org.ldaptive.filter.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.
-
-
-
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. 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(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 )
-
-