|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.cms.publish.mappers.LdapCaSimpleMap
public class LdapCaSimpleMap
Maps a request to an entry in the LDAP server. Takes a dnPattern to form the baseDN from the request attributes and certificate subject name.Do a base search for the entry in the directory to publish the cert or crl. The restriction of this mapper is that the ldap dn components must be part of certificate subject name or request attributes or constant.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_DNPATTERN
|
protected java.lang.String[] |
mCertAttrs
|
protected IConfigStore |
mConfig
|
protected boolean |
mCreateCAEntry
|
protected java.lang.String |
mDnPattern
|
protected MapDNPattern |
mPattern
|
protected java.lang.String[] |
mReqAttrs
|
protected static java.lang.String |
PROP_CREATECA
|
protected static java.lang.String |
PROP_DNPATTERN
|
| Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
|---|
HELP_TEXT, HELP_TOKEN |
| Constructor Summary | |
|---|---|
LdapCaSimpleMap()
constructor if initializing from config store. |
|
LdapCaSimpleMap(java.lang.String dnPattern)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String PROP_DNPATTERN
protected static final java.lang.String PROP_CREATECA
protected java.lang.String mDnPattern
protected boolean mCreateCAEntry
protected IConfigStore mConfig
protected MapDNPattern mPattern
protected java.lang.String[] mReqAttrs
protected java.lang.String[] mCertAttrs
public static final java.lang.String DEFAULT_DNPATTERN
| Constructor Detail |
|---|
public LdapCaSimpleMap(java.lang.String dnPattern)
dnPattern - The base DN.public LdapCaSimpleMap()
| Method Detail |
|---|
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo in interface IExtendedPluginInfopublic IConfigStore getConfigStore()
ILdapPlugin
getConfigStore in interface ILdapPlugin
public 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
EBaseException
public 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()
ILdapMapper
getImplName in interface ILdapMapperpublic java.lang.String getDescription()
ILdapMapper
getDescription in interface ILdapMapperpublic java.util.Vector getDefaultParams()
ILdapMapper
getDefaultParams in interface ILdapMapperpublic java.util.Vector getInstanceParams()
ILdapMapper
getInstanceParams in interface ILdapMapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||