Class Federation

    • Constructor Detail

      • Federation

        public Federation()
        Constructor
    • Method Detail

      • init

        public void init​(Subject subject,
                         Map sharedState,
                         Map options)
        Initialize parameters.
        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
        Process the authentication request.
        Specified by:
        process in class AMLoginModule
        Parameters:
        callbacks - Callback[] for this Login state
        state - Order of state. State order starts with 1.
        Returns:
        ISAuthConstants.LOGIN_SUCCEED as succeeded; ISAuthConstants.LOGIN_IGNORE as failed.
        Throws:
        AuthLoginException - upon any failure. login state should be kept on exceptions for status check in auth chaining.
      • getPrincipal

        public Principal getPrincipal()
        Returns principal of the authenticated user.
        Specified by:
        getPrincipal in class AMLoginModule
        Returns:
        Principal of the authenticated user.