Class ExactMatchCertUserLocator

  • All Implemented Interfaces:
    CertUserLocator

    public class ExactMatchCertUserLocator
    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 "description" field which contains a stringied certificate.
    Version:
    $Revision$, $Date$
    Author:
    thomask, cfu
    • Constructor Detail

      • ExactMatchCertUserLocator

        public ExactMatchCertUserLocator()
        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