src/main/java/org/tinyradius/util/RadiusServer.java
public RadiusPacket accessRequestReceived(AccessRequest accessRequest, InetSocketAddress client)
        throws RadiusException {
        String plaintext = getUserPassword(accessRequest.getUserName());
        int type = RadiusPacket.ACCESS_REJECT;
        if (plaintext != null && accessRequest.verifyPassword(plaintext)) {
            type = RadiusPacket.ACCESS_ACCEPT;
        }

        RadiusPacket answer = new RadiusPacket(type, accessRequest.getPacketIdentifier());
        copyProxyState(accessRequest, answer);
        return answer;
    }
/**
     * Constructs an answer for an Access-Request packet. Either this
     * method or isUserAuthenticated should be overriden.
     *
     * @param accessRequest Radius request packet
     * @param client        address of Radius client
     * @return response packet or null if no packet shall be sent
     * @throws RadiusException malformed request packet; if this
     *                         exception is thrown, no answer will be sent
     */
Constructs an answer for an Access-Request packet. Either this
method or isUserAuthenticated should be overriden.

@param accessRequest Radius request packet
@param client        address of Radius client
@return response packet or null if no packet shall be sent
@throws RadiusException malformed request packet; if this
exception is thrown, no answer will be sent
Constructs an answer for an Access - Request packet . Either this method or isUserAuthenticated should be overriden . @param accessRequest Radius request packet @param client address of Radius client @return response packet or null if no packet shall be sent @throws RadiusException malformed request packet ; if this exception is thrown no answer will be sent
public RadiusPacket accessRequestReceived(AccessRequest accessRequest, InetSocketAddress client)
        throws RadiusException {
        String plaintext = getUserPassword(accessRequest.getUserName());
        int type = RadiusPacket.ACCESS_REJECT;
        if (plaintext != null && accessRequest.verifyPassword(plaintext)) {
            type = RadiusPacket.ACCESS_ACCEPT;
        }
        RadiusPacket answer = new RadiusPacket(type, accessRequest.getPacketIdentifier());
        copyProxyState(accessRequest, answer);
        return answer;
    }
public RadiusPacket accessRequestReceived ( AccessRequest accessRequest , InetSocketAddress client ) throws RadiusException { String plaintext = getUserPassword ( accessRequest . getUserName ( ) ) ; int type = RadiusPacket . ACCESS_REJECT ; if ( plaintext != null && accessRequest . verifyPassword ( plaintext ) ) { type = RadiusPacket . ACCESS_ACCEPT ; } RadiusPacket answer = new RadiusPacket ( type , accessRequest . getPacketIdentifier ( ) ) ; copyProxyState ( accessRequest , answer ) ; return answer ; }
Constructs an answer for an Access-Request packet.
Constructs an answer for an Access - Request packet .