Package org.ldaptive.filter
Class FilterUtils
java.lang.Object
org.ldaptive.filter.FilterUtils
Provides utility methods for this package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
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.
-
Constructor Details
-
FilterUtils
private FilterUtils()Default constructor.
-
-
Method Details
-
escape
Escapes the supplied string per RFC 4515.- Parameters:
s
- to escape- Returns:
- escaped string
-
parseAssertionValue
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
Decodes hex characters in the attribute assertion.- Parameters:
value
- to parse- Returns:
- assertion value bytes
- Throws:
FilterParseException
- if the value contains \0, ( or )
-