public class LdapSimpleMap extends java.lang.Object implements ILdapMapper, IExtendedPluginInfo
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_DNPATTERN |
protected java.lang.String[] |
mCertAttrs |
protected IConfigStore |
mConfig |
protected java.lang.String |
mDnPattern |
protected MapDNPattern |
mPattern |
protected java.lang.String[] |
mReqAttrs |
protected static java.lang.String |
PROP_DNPATTERN |
HELP_TEXT, HELP_TOKEN| Constructor and Description |
|---|
LdapSimpleMap()
constructor if initializing from config store.
|
LdapSimpleMap(java.lang.String dnPattern)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IConfigStore |
getConfigStore()
Return config store.
|
java.util.Vector<java.lang.String> |
getDefaultParams()
Returns the initial default parameters.
|
java.lang.String |
getDescription()
Returns the description of this mapper.
|
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings.
|
java.lang.String |
getImplName()
Returns implementation name.
|
java.util.Vector<java.lang.String> |
getInstanceParams()
Returns the current instance parameters.
|
void |
init(IConfigStore config)
for initializing from config store.
|
protected void |
init(java.lang.String dnPattern)
common initialization routine.
|
java.lang.String |
map(netscape.ldap.LDAPConnection conn,
IRequest req,
java.lang.Object obj)
Maps a X500 subject name to LDAP entry.
|
java.lang.String |
map(netscape.ldap.LDAPConnection conn,
java.lang.Object obj)
Maps a X500 subject name to LDAP entry.
|
protected static final java.lang.String PROP_DNPATTERN
protected java.lang.String mDnPattern
protected IConfigStore mConfig
protected MapDNPattern mPattern
protected java.lang.String[] mReqAttrs
protected java.lang.String[] mCertAttrs
public static final java.lang.String DEFAULT_DNPATTERN
public LdapSimpleMap(java.lang.String dnPattern)
dnPattern - The base DN.public LdapSimpleMap()
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfogetExtendedPluginInfo in interface IExtendedPluginInfopublic IConfigStore getConfigStore()
ILdapPlugingetConfigStore in interface ILdapPluginpublic void init(IConfigStore config) throws EBaseException
init in interface ILdapPluginconfig - the configuration store to initialize from.ELdapException - initialization failed due to Ldap error.EBaseException - initialization failed.protected void init(java.lang.String dnPattern)
throws EBaseException
EBaseExceptionpublic java.lang.String map(netscape.ldap.LDAPConnection conn,
java.lang.Object obj)
throws ELdapException
map in interface ILdapMapperconn - the LDAP connection.obj - the object to map.ELdapException - if any LDAP exceptions occured.public java.lang.String map(netscape.ldap.LDAPConnection conn,
IRequest req,
java.lang.Object obj)
throws ELdapException
map in interface ILdapMapperconn - the LDAP connection.req - the request to map.obj - the object to map.ELdapException - if any LDAP exceptions occured.public java.lang.String getImplName()
ILdapMappergetImplName in interface ILdapMapperpublic java.lang.String getDescription()
ILdapMappergetDescription in interface ILdapMapperpublic java.util.Vector<java.lang.String> getDefaultParams()
ILdapMappergetDefaultParams in interface ILdapMapperpublic java.util.Vector<java.lang.String> getInstanceParams()
ILdapMappergetInstanceParams in interface ILdapMapper