public class LdapEntryIdentification extends Object
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 and Description |
---|
LdapEntryIdentification(DistinguishedName absoluteDn,
DistinguishedName relativeDn)
Construct an LdapEntryIdentification instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DistinguishedName |
getAbsoluteDn()
Get the absolute DN of the identified entry, e.g.
|
DistinguishedName |
getRelativeDn()
Get the DN of the identified entry relative to the base LDAP path, e.g.
|
int |
hashCode() |
public LdapEntryIdentification(DistinguishedName absoluteDn, DistinguishedName 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 DirContextOperations.getDn()
.public DistinguishedName getRelativeDn()
DirContextOperations.getDn()
.public DistinguishedName getAbsoluteDn()
Context.getNameInNamespace()
.Copyright © 2005–2016 The Spring LDAP Framework. All rights reserved.