|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.LDAPDNPrincipal
public class LDAPDNPrincipal
This class represents a Principal whose name is an LDAP DN corresponding to RFC2253.
Field Summary | |
---|---|
static LDAPDNPrincipal |
WHOLE_WORLD_DN
|
Constructor Summary | |
---|---|
protected |
LDAPDNPrincipal()
|
|
LDAPDNPrincipal(java.lang.String ldapDN)
This constructor builds the object out of the String representation of the DN. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
This method defines the equality comparison of the DNs. |
java.lang.String |
getName()
This method returns the canonical representation of the Principal's DN, which may differ from the value you input to the constructor, but with equivalent meaning in terms of RFC2253. |
java.lang.String[][][] |
getParsedDN()
Returns the DN as an array, specified by issrg.utils.RFC2253Parser |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
hashCode, toString |
Field Detail |
---|
public static final LDAPDNPrincipal WHOLE_WORLD_DN
Constructor Detail |
---|
protected LDAPDNPrincipal()
public LDAPDNPrincipal(java.lang.String ldapDN) throws RFC2253ParsingException
issrg.utils.RFC2253NameParser
to check if the name can be
successfully parsed.
If not, an issrg.utils.RFC2253ParsingException
is thrown.
RFC2253ParsingException
RFC2253NameParser
,
RFC2253ParsingException
Method Detail |
---|
public java.lang.String getName()
Note that the issrg.utils.RFC2253NameParser
does not have a
registry of attribute names or OIDs, so it is not aware of what attribute
values should be encoded as hexstrings (starting with '#'). After conversion
of such values to the canonical representation there may be loss of comparison
precision, if
the values happen to contain US-ASCII characters, which will be compared
as case-insensitive values, not as binary values.
getName
in interface java.security.Principal
public java.lang.String[][][] getParsedDN()
public boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in class java.lang.Object
o
- is the object to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |