Class LdapCrlIssuerCompsMap

    • Constructor Summary

      Constructors 
      Constructor Description
      LdapCrlIssuerCompsMap()  
      LdapCrlIssuerCompsMap​(java.lang.String crlAttr, java.lang.String baseDN, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
      constructor using non-standard certificate attribute.
      LdapCrlIssuerCompsMap​(java.lang.String baseDN, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Vector<java.lang.String> getDefaultParams()
      Returns the initial default parameters.
      java.lang.String getDescription()
      Returns the description of this mapper.
      java.lang.String getImplName()
      Returns implementation name.
      java.util.Vector<java.lang.String> getInstanceParams()
      Returns the current instance parameters.
      protected void init​(java.lang.String baseDN, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps, org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
      common initialization routine.
      java.lang.String map​(netscape.ldap.LDAPConnection conn, com.netscape.certsrv.request.IRequest req, java.lang.Object obj)
      maps a certificate to a LDAP entry.
      java.lang.String map​(netscape.ldap.LDAPConnection conn, java.lang.Object obj)
      Maps a crl to LDAP entry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • LdapCrlIssuerCompsMap

        public LdapCrlIssuerCompsMap()
      • LdapCrlIssuerCompsMap

        public LdapCrlIssuerCompsMap​(java.lang.String baseDN,
                                     org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps,
                                     org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
        Constructor. The DN comps are used to form a LDAP entry to begin a subtree search. The filter comps are used to form a search filter for the subtree. If none of the DN comps matched, baseDN is used for the subtree. If the baseDN is null and none of the DN comps matched, it is an error. If none of the DN comps and filter comps matched, it is an error. If just the filter comps is null, a base search is performed.
        Parameters:
        baseDN - The base DN.
        dnComps - Components to form the LDAP base dn for search.
        filterComps - Components to form the LDAP search filter.
      • LdapCrlIssuerCompsMap

        public LdapCrlIssuerCompsMap​(java.lang.String crlAttr,
                                     java.lang.String baseDN,
                                     org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps,
                                     org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
        constructor using non-standard certificate attribute.
    • Method Detail

      • init

        protected void init​(java.lang.String baseDN,
                            org.mozilla.jss.netscape.security.util.ObjectIdentifier[] dnComps,
                            org.mozilla.jss.netscape.security.util.ObjectIdentifier[] filterComps)
        Description copied from class: LdapDNCompsMap
        common initialization routine.
        Overrides:
        init in class LdapDNCompsMap
      • map

        public java.lang.String map​(netscape.ldap.LDAPConnection conn,
                                    java.lang.Object obj)
                             throws com.netscape.certsrv.ldap.ELdapException
        Maps a crl to LDAP entry. Uses issuer DN components and filter components to form a DN and filter for a LDAP search. If the formed DN is null the baseDN will be used. If the formed DN is null and baseDN is null an error is thrown. If the filter is null a base search is performed. If both are null an error is thrown.
        Specified by:
        map in interface ILdapMapper
        Parameters:
        conn - - the LDAP connection.
        obj - - the X509Certificate.
        Returns:
        the result. LdapCertMapResult is also used for CRL.
        Throws:
        com.netscape.certsrv.ldap.ELdapException - Map operation failed.
      • map

        public java.lang.String map​(netscape.ldap.LDAPConnection conn,
                                    com.netscape.certsrv.request.IRequest req,
                                    java.lang.Object obj)
                             throws com.netscape.certsrv.ldap.ELdapException
        Description copied from interface: ILdapMapper
        maps a certificate to a LDAP entry. returns dn of the mapped LDAP entry.
        Specified by:
        map in interface ILdapMapper
        Parameters:
        conn - the LDAP connection
        req - the request to map
        obj - the object to map
        Returns:
        dn indicates whether a mapping was successful
        Throws:
        com.netscape.certsrv.ldap.ELdapException - Map operation failed.