Class AuthHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      AuthHandler​()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String getUserPassword​(java.lang.String userName)
      Returns the password of the passed user.
      io.netty.util.concurrent.Promise<RadiusPacket> handlePacket​(io.netty.channel.Channel channel, AccessRequest request, java.net.InetSocketAddress remoteAddress, SecretProvider secretProvider)
      Handles the received Radius packet and constructs a response.
      • Methods inherited from class java.lang.Object

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

      • AuthHandler

        public AuthHandler​()
    • Method Detail

      • getUserPassword

        public abstract java.lang.String getUserPassword​(java.lang.String userName)
        Returns the password of the passed user.
        Parameters:
        userName - user name
        Returns:
        plain-text password or null if user unknown
      • handlePacket

        public io.netty.util.concurrent.Promise<RadiusPacket> handlePacket​(io.netty.channel.Channel channel,
                                                                           AccessRequest request,
                                                                           java.net.InetSocketAddress remoteAddress,
                                                                           SecretProvider secretProvider)
        Description copied from interface: RequestHandler
        Handles the received Radius packet and constructs a response. Filters/Deduplicators can also implement this and wrap around underlying handlers.
        Specified by:
        handlePacket in interface RequestHandler<AccessRequest,SecretProvider>
        Parameters:
        channel - socket which received packet
        request - incoming packet, can be RadiusPacket or subclass
        remoteAddress - remote address the packet was sent by
        secretProvider - shared secret associated with remoteAddress
        Returns:
        Promise of RadiusPacket or null for no response. Uses Promise instead Future, so requests to be timed out or cancelled by the caller