|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.publish.mappers.LdapDNCompsMap
com.netscape.cms.publish.mappers.LdapCertCompsMap
public class LdapCertCompsMap
Maps a X509 certificate to a LDAP entry using AVAs in the certificate's 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 |
---|
Nested classes/interfaces inherited from class com.netscape.cms.publish.mappers.LdapDNCompsMap |
---|
LdapDNCompsMap.SearchFilter |
Field Summary |
---|
Fields inherited from class com.netscape.cms.publish.mappers.LdapDNCompsMap |
---|
mBaseDN, mConfig, mDnComps, mFilterComps |
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
LdapCertCompsMap()
|
|
LdapCertCompsMap(java.lang.String baseDN,
netscape.security.util.ObjectIdentifier[] dnComps,
netscape.security.util.ObjectIdentifier[] filterComps)
Constructor. |
|
LdapCertCompsMap(java.lang.String certAttr,
java.lang.String baseDN,
netscape.security.util.ObjectIdentifier[] dnComps,
netscape.security.util.ObjectIdentifier[] filterComps)
constructor using non-standard certificate attribute. |
Method Summary | |
---|---|
java.util.Vector |
getDefaultParams()
Returns the initial default parameters. |
java.lang.String |
getDescription()
Returns the description of this mapper. |
java.lang.String |
getImplName()
Returns implementation name. |
java.util.Vector |
getInstanceParams()
Returns the current instance parameters. |
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,
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)
Maps a certificate to LDAP entry. |
Methods inherited from class com.netscape.cms.publish.mappers.LdapDNCompsMap |
---|
formDNandFilter, getCompsFromString, getConfigStore, getDnComps, getExtendedPluginInfo, getFilterComps, init, map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.netscape.certsrv.publish.ILdapPlugin |
---|
getConfigStore, init |
Constructor Detail |
---|
public LdapCertCompsMap()
public LdapCertCompsMap(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 LdapCertCompsMap(java.lang.String certAttr, java.lang.String baseDN, netscape.security.util.ObjectIdentifier[] dnComps, netscape.security.util.ObjectIdentifier[] filterComps)
Method Detail |
---|
public java.lang.String getImplName()
ILdapMapper
getImplName
in interface ILdapMapper
getImplName
in class LdapDNCompsMap
public java.lang.String getDescription()
ILdapMapper
getDescription
in interface ILdapMapper
getDescription
in class LdapDNCompsMap
public java.util.Vector getDefaultParams()
ILdapMapper
getDefaultParams
in interface ILdapMapper
getDefaultParams
in class LdapDNCompsMap
public java.util.Vector getInstanceParams()
ILdapMapper
getInstanceParams
in interface ILdapMapper
getInstanceParams
in class LdapDNCompsMap
protected void init(java.lang.String baseDN, netscape.security.util.ObjectIdentifier[] dnComps, netscape.security.util.ObjectIdentifier[] filterComps)
LdapDNCompsMap
init
in class LdapDNCompsMap
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |