|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.publish.mappers.LdapCertSubjMap
public class LdapCertSubjMap
Maps a X509 certificate to a LDAP entry by finding an LDAP entry which has an attribute whose contents are equal to the cert subject name.
Field Summary | |
---|---|
static java.lang.String |
LDAP_CERTSUBJNAME_ATTR
|
protected java.lang.String |
mCertSubjNameAttr
|
protected IConfigStore |
mConfig
|
protected java.lang.String |
mSearchBase
|
protected boolean |
mUseAllEntries
|
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
LdapCertSubjMap()
|
|
LdapCertSubjMap(java.lang.String searchBase)
constructs a certificate subject name mapper with search base. |
|
LdapCertSubjMap(java.lang.String searchBase,
java.lang.String certSubjNameAttr,
java.lang.String certAttr)
Constructor using non-ES cert map attribute name. |
|
LdapCertSubjMap(java.lang.String searchBase,
java.lang.String certSubjNameAttr,
java.lang.String certAttr,
boolean useAllEntries)
|
Method Summary | |
---|---|
java.lang.String |
getCertSubjNameAttr()
return certificate subject attribute |
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. |
java.lang.String |
getSearchBase()
return search base |
void |
init(IConfigStore config)
Initialize from config store. |
java.lang.String |
map(netscape.ldap.LDAPConnection conn,
IRequest req,
java.lang.Object obj)
maps a certificate to a LDAP entry. |
java.lang.String |
map(netscape.ldap.LDAPConnection conn,
java.lang.Object obj)
Finds the entry for the certificate by looking for the cert subject name in the subject name attribute. |
java.util.Vector |
mapAll(netscape.ldap.LDAPConnection conn,
IRequest req,
java.lang.Object obj)
|
java.util.Vector |
mapAll(netscape.ldap.LDAPConnection conn,
java.lang.Object obj)
|
boolean |
useAllEntries()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LDAP_CERTSUBJNAME_ATTR
protected java.lang.String mSearchBase
protected java.lang.String mCertSubjNameAttr
protected boolean mUseAllEntries
protected IConfigStore mConfig
Constructor Detail |
---|
public LdapCertSubjMap()
public LdapCertSubjMap(java.lang.String searchBase)
searchBase
- the dn to start searching for the certificate
subject name.public LdapCertSubjMap(java.lang.String searchBase, java.lang.String certSubjNameAttr, java.lang.String certAttr)
searchBase
- entry to start search.certSubjNameAttr
- attribute for certificate subject names.certAttr
- attribute to find certificate.public LdapCertSubjMap(java.lang.String searchBase, java.lang.String certSubjNameAttr, java.lang.String certAttr, boolean useAllEntries)
Method Detail |
---|
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.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
public java.util.Vector getInstanceParams()
ILdapMapper
getInstanceParams
in interface ILdapMapper
public IConfigStore getConfigStore()
ILdapPlugin
getConfigStore
in interface ILdapPlugin
public void init(IConfigStore config) throws EBaseException
ILdapPlugin
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 map(netscape.ldap.LDAPConnection conn, java.lang.Object obj) throws ELdapException
map
in interface ILdapMapper
conn
- - the LDAP connection.obj
- - the X509Certificate.
ELdapException
- Map operation failed.public java.lang.String map(netscape.ldap.LDAPConnection conn, IRequest req, java.lang.Object obj) throws ELdapException
ILdapMapper
map
in interface ILdapMapper
conn
- the LDAP connectionreq
- the request to mapobj
- the object to map
ELdapException
- Map operation failed.public java.util.Vector mapAll(netscape.ldap.LDAPConnection conn, java.lang.Object obj) throws ELdapException
ELdapException
public java.util.Vector mapAll(netscape.ldap.LDAPConnection conn, IRequest req, java.lang.Object obj) throws ELdapException
ELdapException
public java.lang.String getSearchBase()
public java.lang.String getCertSubjNameAttr()
public boolean useAllEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |