com.netscape.certsrv.publish
Interface ILdapCertMapper

All Superinterfaces:
ILdapPlugin

public interface ILdapCertMapper
extends ILdapPlugin

Interface for mapping a X509 certificate to a LDAP entry.

Version:
$Revision: 1211 $ $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 java.util.Vector getDefaultParams()
          Returns the 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 instance parameters.
 LdapCertMapResult map(netscape.ldap.LDAPConnection conn, java.security.cert.X509Certificate cert, boolean checkForCert)
          maps a certificate to a LDAP entry.
 
Methods inherited from interface com.netscape.certsrv.publish.ILdapPlugin
getConfigStore, init
 

Method Detail

getImplName

java.lang.String getImplName()
Returns implementation name.


getDescription

java.lang.String getDescription()
Returns the description of this mapper.


getDefaultParams

java.util.Vector getDefaultParams()
Returns the default parameters.


getInstanceParams

java.util.Vector getInstanceParams()
Returns the instance parameters.


map

LdapCertMapResult map(netscape.ldap.LDAPConnection conn,
                      java.security.cert.X509Certificate cert,
                      boolean checkForCert)
                      throws ELdapException
maps a certificate to a LDAP entry. returns dn of the mapped LDAP entry.

Parameters:
conn - the LDAP connection
cert - the certificate to map
checkForCert - whether to check for the presence of the cert
Returns:
LdapCertMapResult indicates whether a mapping was successful and whether a certificate was found if checkForCert was true. If checkForCert was not set the hasCert method in LdapCertMapResult should be ignored.
Throws:
ELdapException - Failed to map.