Class LDAP

    • Field Detail

      • validatedUserID

        protected String validatedUserID
      • currentConfig

        public Map currentConfig
      • debug

        protected Debug debug
      • amAuthLDAP

        protected String amAuthLDAP
      • userPrincipal

        protected Principal userPrincipal
    • Constructor Detail

      • LDAP

        public LDAP()
        TODO-JAVADOC
    • Method Detail

      • init

        public void init​(Subject subject,
                         Map sharedState,
                         Map options)
        TODO-JAVADOC
        Specified by:
        init in class AMLoginModule
        Parameters:
        subject - - the Subject to be authenticated.
        sharedState - - state shared with other configured LoginModules.
        options - - options specified in the login Configuration for this particular LoginModule. It contains all the global and organization attribute configuration for this module. The key of the map is the attribute name (e.g. iplanet-am-auth-ldap-server) as String, the value is the value of the corresponding attribute as Set.
      • process

        public int process​(Callback[] callbacks,
                           int state)
                    throws AuthLoginException
        Description copied from class: AMLoginModule
        Abstract method must be implemented by each login module to control the flow of the login process.

        This method takes an array of sbumitted Callback, process them and decide the order of next state to go. Return -1 if the login is successful, return 0 if the LoginModule should be ignored.

        Specified by:
        process in class AMLoginModule
        Parameters:
        callbacks - Callback[] for this Login state
        state - Order of state. State order starts with 1.
        Returns:
        order of next state. return -1 if authentication is successful, return 0 if the LoginModule should be ignored.
        Throws:
        AuthLoginException