|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.publish.mappers.LdapDNCompsMap
public class LdapDNCompsMap
Maps a Subject name to an entry in the LDAP server. subject name to form the ldap search dn and filter. Takes a optional root search dn. The DN comps are used to form a LDAP entry to begin a subtree search. The filter comps are used to form a search filter for the subtree. If none of the DN comps matched, baseDN is used for the subtree. If the baseDN is null and none of the DN comps matched, it is an error. If none of the DN comps and filter comps matched, it is an error. If just the filter comps is null, a base search is performed.
Nested Class Summary | |
---|---|
static class |
LdapDNCompsMap.SearchFilter
class for forming search filters for ldap searching from name=value components. |
Field Summary | |
---|---|
protected java.lang.String |
mBaseDN
|
protected IConfigStore |
mConfig
|
protected netscape.security.util.ObjectIdentifier[] |
mDnComps
|
protected netscape.security.util.ObjectIdentifier[] |
mFilterComps
|
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
LdapDNCompsMap()
constructor if initializing from config store. |
|
LdapDNCompsMap(java.lang.String ldapAttr,
java.lang.String baseDN,
netscape.security.util.ObjectIdentifier[] dnComps,
netscape.security.util.ObjectIdentifier[] filterComps)
Constructor. |
Method Summary | |
---|---|
java.lang.String[] |
formDNandFilter(netscape.security.x509.X500Name subjName)
form a dn and filter from component in the cert subject name |
static netscape.security.util.ObjectIdentifier[] |
getCompsFromString(java.lang.String val)
useful routine for parsing components given as string to arrays of objectidentifiers. |
IConfigStore |
getConfigStore()
Return config store. |
java.util.Vector |
getDefaultParams()
|
java.lang.String |
getDescription()
|
netscape.security.util.ObjectIdentifier[] |
getDnComps()
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings. |
netscape.security.util.ObjectIdentifier[] |
getFilterComps()
|
java.lang.String |
getImplName()
|
java.util.Vector |
getInstanceParams()
|
void |
init(IConfigStore config)
for initializing from config store. |
protected void |
init(java.lang.String baseDN,
netscape.security.util.ObjectIdentifier[] dnComps,
netscape.security.util.ObjectIdentifier[] filterComps)
common initialization routine. |
java.lang.String |
map(netscape.ldap.LDAPConnection conn,
netscape.security.x509.X500Name x500name,
byte[] obj)
Maps a X500 subject name to LDAP entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String mBaseDN
protected netscape.security.util.ObjectIdentifier[] mDnComps
protected netscape.security.util.ObjectIdentifier[] mFilterComps
protected IConfigStore mConfig
Constructor Detail |
---|
public LdapDNCompsMap(java.lang.String ldapAttr, java.lang.String baseDN, netscape.security.util.ObjectIdentifier[] dnComps, netscape.security.util.ObjectIdentifier[] filterComps)
baseDN
- The base DN.dnComps
- Components to form the LDAP base dn for search.filterComps
- Components to form the LDAP search filter.public LdapDNCompsMap()
Method Detail |
---|
public IConfigStore getConfigStore()
ILdapPlugin
getConfigStore
in interface ILdapPlugin
public void init(IConfigStore config) throws EBaseException
init
in interface ILdapPlugin
config
- the configuration store to initialize from.
ELdapException
- initialization failed due to Ldap error.
EBaseException
- initialization failed.public java.lang.String getImplName()
public java.lang.String getDescription()
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
public java.util.Vector getDefaultParams()
public java.util.Vector getInstanceParams()
protected void init(java.lang.String baseDN, netscape.security.util.ObjectIdentifier[] dnComps, netscape.security.util.ObjectIdentifier[] filterComps)
public java.lang.String map(netscape.ldap.LDAPConnection conn, netscape.security.x509.X500Name x500name, byte[] obj) throws ELdapException
conn
- the LDAP connection.x500name
- the dn to map.obj
- the object
ELdapException
- if any LDAP exceptions occured.public java.lang.String[] formDNandFilter(netscape.security.x509.X500Name subjName) throws ELdapException
subjName
- subject name
ELdapException
public netscape.security.util.ObjectIdentifier[] getDnComps()
public netscape.security.util.ObjectIdentifier[] getFilterComps()
public static netscape.security.util.ObjectIdentifier[] getCompsFromString(java.lang.String val) throws ELdapException
val
- the string specifying the comps
ELdapException
- if any error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |