Class Membership

    • Constructor Detail

      • Membership

        public Membership()
    • Method Detail

      • init

        public void init​(Subject subject,
                         Map sharedState,
                         Map options)
        Initializes this LoginModule.
        Specified by:
        init in class AMLoginModule
        Parameters:
        subject - the Subject to be authenticated.
        sharedState - shared LoginModule state.
        options - options specified in the login. Configuration for this particular LoginModule.
      • process

        public int process​(Callback[] callbacks,
                           int state)
                    throws AuthLoginException
        Takes an array of submitted Callback, process them and decide the order of next state to go. Return STATE_SUCCEED if the login is successful, return STATE_FAILED if the LoginModule should be ignored.
        Specified by:
        process in class AMLoginModule
        Parameters:
        callbacks - an array of Callback for this Login state
        state - order of state. State order starts with 1.
        Returns:
        int order of next state. Return STATE_SUCCEED if authentication is successful, return STATE_FAILED if the LoginModule should be ignored.
        Throws:
        AuthLoginException