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 |
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 |
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)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
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.protected void init(java.lang.String dnPattern) throws EBaseException
EBaseException
public java.lang.String map(netscape.ldap.LDAPConnection conn, java.lang.Object obj) throws ELdapException
map
in interface ILdapMapper
conn
- 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 ILdapMapper
conn
- the LDAP connection.req
- the request to map.obj
- the object to map.ELdapException
- if any LDAP exceptions occured.public java.lang.String getImplName()
ILdapMapper
getImplName
in interface ILdapMapper
public java.lang.String getDescription()
ILdapMapper
getDescription
in interface ILdapMapper
public java.util.Vector getDefaultParams()
ILdapMapper
getDefaultParams
in interface ILdapMapper
public java.util.Vector getInstanceParams()
ILdapMapper
getInstanceParams
in interface ILdapMapper