Class LdapCrlIssuerCompsMap

java.lang.Object
com.netscape.cms.publish.mappers.LdapDNCompsMap
com.netscape.cms.publish.mappers.LdapCrlIssuerCompsMap
All Implemented Interfaces:
IExtendedPluginInfo, ILdapMapper, ILdapPlugin

public class LdapCrlIssuerCompsMap extends LdapDNCompsMap implements ILdapMapper
Default crl mapper. maps the crl to a ldap entry by using components in the issuer name to find the CA's entry.
Version:
$Revision$, $Date$
  • Field Details

    • logger

      public static org.slf4j.Logger logger
  • Constructor Details

    • LdapCrlIssuerCompsMap

      public LdapCrlIssuerCompsMap()
    • LdapCrlIssuerCompsMap

      public LdapCrlIssuerCompsMap(String baseDN, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
      Constructor. 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.
      Parameters:
      baseDN - The base DN.
      dnComps - Components to form the LDAP base dn for search.
      filterComps - Components to form the LDAP search filter.
    • LdapCrlIssuerCompsMap

      public LdapCrlIssuerCompsMap(String crlAttr, String baseDN, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
      constructor using non-standard certificate attribute.
  • Method Details

    • getImplName

      public String getImplName()
      Description copied from interface: ILdapMapper
      Returns implementation name.
      Specified by:
      getImplName in interface ILdapMapper
      Overrides:
      getImplName in class LdapDNCompsMap
    • getDescription

      public String getDescription()
      Description copied from interface: ILdapMapper
      Returns the description of this mapper.
      Specified by:
      getDescription in interface ILdapMapper
      Overrides:
      getDescription in class LdapDNCompsMap
    • getDefaultParams

      public Vector<String> getDefaultParams()
      Description copied from interface: ILdapMapper
      Returns the initial default parameters.
      Specified by:
      getDefaultParams in interface ILdapMapper
      Overrides:
      getDefaultParams in class LdapDNCompsMap
    • getInstanceParams

      public Vector<String> getInstanceParams()
      Description copied from interface: ILdapMapper
      Returns the current instance parameters.
      Specified by:
      getInstanceParams in interface ILdapMapper
      Overrides:
      getInstanceParams in class LdapDNCompsMap
    • init

      protected void init(String baseDN, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
      Description copied from class: LdapDNCompsMap
      common initialization routine.
      Overrides:
      init in class LdapDNCompsMap
    • map

      public String map(netscape.ldap.LDAPConnection conn, Object obj) throws ELdapException
      Maps a crl to LDAP entry. Uses issuer DN components and filter components to form a DN and filter for a LDAP search. If the formed DN is null the baseDN will be used. If the formed DN is null and baseDN is null an error is thrown. If the filter is null a base search is performed. If both are null an error is thrown.
      Specified by:
      map in interface ILdapMapper
      Parameters:
      conn - - the LDAP connection.
      obj - - the X509Certificate.
      Returns:
      the result. LdapCertMapResult is also used for CRL.
      Throws:
      ELdapException - Map operation failed.
    • map

      public String map(netscape.ldap.LDAPConnection conn, Request req, Object obj) throws ELdapException
      Description copied from interface: ILdapMapper
      maps a certificate to a LDAP entry. returns dn of the mapped LDAP entry.
      Specified by:
      map in interface ILdapMapper
      Parameters:
      conn - the LDAP connection
      req - the request to map
      obj - the object to map
      Returns:
      dn indicates whether a mapping was successful
      Throws:
      ELdapException - Map operation failed.