Class Mapper

java.lang.Object
com.netscape.certsrv.publish.Mapper

public abstract class Mapper extends Object
Class for mapping a X509 certificate to a LDAP entry.
  • Constructor Details

    • Mapper

      public Mapper()
  • Method Details

    • init

      public abstract void init(ConfigStore config) throws EBaseException, ELdapException
      Initialize from config store.
      Parameters:
      config - the configuration store to initialize from.
      Throws:
      ELdapException - initialization failed due to Ldap error.
      EBaseException - initialization failed.
    • getConfigStore

      public abstract ConfigStore getConfigStore()
      Return config store.
    • getImplName

      public abstract String getImplName()
      Returns implementation name.
    • getDescription

      public abstract String getDescription()
      Returns the description of this mapper.
    • getDefaultParams

      public abstract Vector<String> getDefaultParams()
      Returns the initial default parameters.
    • getInstanceParams

      public abstract Vector<String> getInstanceParams()
      Returns the current instance parameters.
    • map

      public abstract String map(netscape.ldap.LDAPConnection conn, Object obj) throws ELdapException
      maps a certificate to a LDAP entry. returns dn of the mapped LDAP entry.
      Parameters:
      conn - the LDAP connection
      obj - the object to map
      Returns:
      dn indicates whether a mapping was successful
      Throws:
      ELdapException - Map operation failed.
    • map

      public abstract String map(netscape.ldap.LDAPConnection conn, Request r, Object obj) throws ELdapException
      maps a certificate to a LDAP entry. returns dn of the mapped LDAP entry.
      Parameters:
      conn - the LDAP connection
      r - the request to map
      obj - the object to map
      Returns:
      dn indicates whether a mapping was successful
      Throws:
      ELdapException - Map operation failed.