Class PatternDN
- java.lang.Object
 - 
- org.opends.server.authorization.dseecompat.PatternDN
 
 
- 
public final class PatternDN extends Object
This class is used to encapsulate DN pattern matching using wildcards. The following wildcard uses are supported. Value substring: Any number of wildcards may appear in RDN attribute values where they match zero or more characters, just like substring filters: uid=b*jensen* Whole-Type: A single wildcard may also be used to match any RDN attribute type, and the wildcard in this case may be omitted as a shorthand: *=bjensen bjensen Whole-RDN. A single wildcard may be used to match exactly one RDN component (which may be single or multi-valued): *,dc=example,dc=com Multiple-Whole-RDN: A double wildcard may be used to match one or more RDN components: uid=bjensen,**,dc=example,dc=com 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatternDNdecode(String dnString)Create a new DN pattern matcher from a pattern string.booleanmatchesDN(Dn dn, Schema schema)Determine whether a given DN matches this pattern.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
matchesDN
public boolean matchesDN(Dn dn, Schema schema)
Determine whether a given DN matches this pattern.- Parameters:
 dn- The DN to be matched.schema- The schema to use for matching.- Returns:
 - true if the DN matches the pattern.
 
 
- 
decode
public static PatternDN decode(String dnString) throws LdapException
Create a new DN pattern matcher from a pattern string.- Parameters:
 dnString- The DN pattern string.- Returns:
 - A new DN pattern matcher.
 - Throws:
 LdapException- If the pattern string is not valid.
 
 - 
 
 -