Class RADIUS

  • All Implemented Interfaces:
    LoginModule

    public class RADIUS
    extends AMLoginModule
    An authentication module that defers to remote radius servers to validate username and password. It includes admin console configuration pages for identifying the remote servers and various parameters.
    • Constructor Detail

      • RADIUS

        public RADIUS()
    • 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 - if the user fails authentication or some anomalous condition occurs
      • readAttributesFromResponsePacket

        protected void readAttributesFromResponsePacket​(Packet response)
                                                 throws AuthLoginException
        Extension point to handle additional response attributes
        Parameters:
        response - the RADIUS authentication response packet
        Throws:
        AuthLoginException - exception thrown if login has to fail based on additional attributes
      • shutdown

        public void shutdown()
        Shutdown the RADIUS connection.