Class CertDNCertUserLocator

  • All Implemented Interfaces:
    CertUserLocator

    public class CertDNCertUserLocator
    extends java.lang.Object
    implements CertUserLocator
    This interface defines a strategy on how to match the incoming certificate(s) with the certificate(s) in the scope. It matches the "certdn" field which contains the subject dn of the certificate
    Version:
    $Revision$, $Date$
    Author:
    cfu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String LDAP_ATTR_CERTDN  
    • Constructor Summary

      Constructors 
      Constructor Description
      CertDNCertUserLocator()
      Constructs certificate matching agent.
    • Field Detail

      • LDAP_ATTR_CERTDN

        protected static final java.lang.String LDAP_ATTR_CERTDN
        See Also:
        Constant Field Values
    • Constructor Detail

      • CertDNCertUserLocator

        public CertDNCertUserLocator()
        Constructs certificate matching agent.
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Retrieves description.
        Specified by:
        getDescription in interface CertUserLocator
        Returns:
        description
      • locateUser

        public IUser locateUser​(Certificates certs)
                         throws EUsrGrpException,
                                netscape.ldap.LDAPException,
                                com.netscape.certsrv.ldap.ELdapException
        Do the cert-user mapping
        Specified by:
        locateUser in interface CertUserLocator
        Returns:
        an user interface
        Throws:
        EUsrGrpException - thrown when failed to build user
        netscape.ldap.LDAPException - thrown when LDAP internal database is not available
        com.netscape.certsrv.ldap.ELdapException - thrown when the LDAP search failed