Package com.netscape.certsrv.publish
Class Mapper
java.lang.Object
com.netscape.certsrv.publish.Mapper
Class for mapping a X509 certificate to a LDAP entry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ConfigStore
Return config store.Returns the initial default parameters.abstract String
Returns the description of this mapper.abstract String
Returns implementation name.Returns the current instance parameters.abstract void
init
(ConfigStore config) Initialize from config store.abstract String
maps a certificate to a LDAP entry.abstract String
maps a certificate to a LDAP entry.
-
Constructor Details
-
Mapper
public Mapper()
-
-
Method Details
-
init
Initialize from config store.- Parameters:
config
- the configuration store to initialize from.- Throws:
ELdapException
- initialization failed due to Ldap error.EBaseException
- initialization failed.
-
getConfigStore
Return config store. -
getImplName
Returns implementation name. -
getDescription
Returns the description of this mapper. -
getDefaultParams
Returns the initial default parameters. -
getInstanceParams
Returns the current instance parameters. -
map
maps a certificate to a LDAP entry. returns dn of the mapped LDAP entry.- Parameters:
conn
- the LDAP connectionobj
- 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 connectionr
- the request to mapobj
- the object to map- Returns:
- dn indicates whether a mapping was successful
- Throws:
ELdapException
- Map operation failed.
-