|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ldap.core.LdapEntryIdentification
public class LdapEntryIdentification
Wrapper class to handle the full identification of an LDAP entry. An LDAP
entry is identified by its Distinguished Name, in Spring LDAP represented by
the DistinguishedName
class. A Distinguished Name can be absolute -
i.e. complete including the very root (base) of the LDAP tree - or relative -
i.e relative to the base LDAP path of the current LDAP connection (specified
as base
to the ContextSource
).
The different representations are needed on different occasions, e.g. the relative DN is typically what is needed to perform lookups and searches in the LDAP tree, whereas the absolute DN is needed when authenticating and when an LDAP entry is referred to in e.g. a group. This wrapper class contains both of these representations.
Constructor Summary | |
---|---|
LdapEntryIdentification(DistinguishedName absoluteDn,
DistinguishedName relativeDn)
Deprecated. DistinguishedName and associated classes and methods are deprecated as of 2.0.
use LdapEntryIdentification(javax.naming.ldap.LdapName, javax.naming.ldap.LdapName) instead. |
|
LdapEntryIdentification(LdapName absoluteDn,
LdapName relativeDn)
Construct an LdapEntryIdentification instance. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
DistinguishedName |
getAbsoluteDn()
Deprecated. DistinguishedName and associated classes and methods are deprecated as of 2.0.
use getAbsoluteName() instead. |
LdapName |
getAbsoluteName()
Get the DN of the identified entry relative to the base LDAP path, e.g. |
DistinguishedName |
getRelativeDn()
Deprecated. DistinguishedName and associated classes and methods are deprecated as of 2.0.
use getRelativeName() instead. |
LdapName |
getRelativeName()
Get the absolute DN of the identified entry, e.g. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapEntryIdentification(DistinguishedName absoluteDn, DistinguishedName relativeDn)
DistinguishedName
and associated classes and methods are deprecated as of 2.0.
use LdapEntryIdentification(javax.naming.ldap.LdapName, javax.naming.ldap.LdapName)
instead.
absoluteDn
- the absolute DN of the identified entry, e.g. as
returned by Context.getNameInNamespace()
.relativeDn
- the DN of the identified entry relative to the base
LDAP path, e.g. as returned by LdapDataEntry.getDn()
.public LdapEntryIdentification(LdapName absoluteDn, LdapName relativeDn)
absoluteDn
- the absolute DN of the identified entry, e.g. as
returned by Context.getNameInNamespace()
.relativeDn
- the DN of the identified entry relative to the base
LDAP path, e.g. as returned by LdapDataEntry.getDn()
.Method Detail |
---|
public LdapName getAbsoluteName()
LdapDataEntry.getDn()
.
public LdapName getRelativeName()
Context.getNameInNamespace()
.
public DistinguishedName getRelativeDn()
DistinguishedName
and associated classes and methods are deprecated as of 2.0.
use getRelativeName()
instead.
LdapDataEntry.getDn()
.
public DistinguishedName getAbsoluteDn()
DistinguishedName
and associated classes and methods are deprecated as of 2.0.
use getAbsoluteName()
instead.
Context.getNameInNamespace()
.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |