Class AcceptAllHandler
- java.lang.Object
-
- org.forgerock.openam.radius.server.spi.handlers.AcceptAllHandler
-
- All Implemented Interfaces:
AccessRequestHandler
public class AcceptAllHandler extends Object implements AccessRequestHandler
Simple handler that sends an AccessAccept for all incoming Radius access requests. This handler can be used to test the connection from the Radius client to OpenAM without engaging the open am infrastructure when troubleshooting.
-
-
Constructor Summary
Constructors Constructor Description AcceptAllHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(RadiusRequest request, RadiusResponse response, RadiusRequestContext reqCtx)Determines how the passed-in request should be handled and calls the send method in the context passing the appropriate response packet of type AccessAccept, AccessReject, or AccessChallenge.voidinit(Properties config)Passes to the handler configuration parameters declared in OpenAM's admin console for the client's declared handler class.
-
-
-
Method Detail
-
init
public void init(Properties config)
Description copied from interface:AccessRequestHandlerPasses to the handler configuration parameters declared in OpenAM's admin console for the client's declared handler class.- Specified by:
initin interfaceAccessRequestHandler- Parameters:
config- - the handler configuration parameters.
-
handle
public void handle(RadiusRequest request, RadiusResponse response, RadiusRequestContext reqCtx) throws RadiusProcessingException
Description copied from interface:AccessRequestHandlerDetermines how the passed-in request should be handled and calls the send method in the context passing the appropriate response packet of type AccessAccept, AccessReject, or AccessChallenge. Only one call to the context's send method is accepted. Any following calls will be ignored. Once this method returns, the context object is disabled so that any subsequent calls by a launched thread for example will be ignored. If this method returns without invoking the handler's send method then the request packet is essentially dropped silently.- Specified by:
handlein interfaceAccessRequestHandler- Parameters:
request- the access requestresponse- - the response to be sent to the client.reqCtx- - provides methods that the handler can use to obtain information about the context in which the request was made, for example the name and IP address of the client from which the request was received.- Throws:
RadiusProcessingException- when a response to the request can not be sent.
-
-