Core API 7.7

net.juniper.smgt.sae.radiuslib
Interface RadiusPacketHandler


public interface RadiusPacketHandler

This interface is intended to be implemented by a system integrator to define RADIUS attributes to be sent to a RADIUS server when various types of requests are made, and to define which attributes should be retrieved from a RADIUS authorization response for update to the plug-in event.


Method Summary
 boolean formatRequest(RadiusPacketDelegate delegate, int action, RadiusPluginEvent event)
          Formats a RADIUS request packet by including RADIUS attribute identifier-value pairs in the packet.
 boolean handleResponse(RadiusPacketDelegate delegate, int action, RadiusPluginEvent event)
          Retrieves attribute values from a RADIUS authorization response packet and updates the plug-in event with these values.
 

Method Detail

formatRequest

boolean formatRequest(RadiusPacketDelegate delegate,
                      int action,
                      RadiusPluginEvent event)
                      throws RadiusPacketFailedAccessException
Formats a RADIUS request packet by including RADIUS attribute identifier-value pairs in the packet. The formatting can be defined by different request types. The attribute values are retrieved from the plug-in event.

Parameters:
delegate - An instance of the RadiusPacketDelegate interface which provides access to the RADIUS packet.
action - Encoded integer that defines the request type. See RadiusPluginUtil.is*Request()for details.
event - Instance of the plug-in event that keeps track of specified RADIUS attribute values.
Returns:
true if the action matches one or more request type that is defined in this method.
Throws:
RadiusPacketFailedAccessException - Raised if the formatting is invalid.

handleResponse

boolean handleResponse(RadiusPacketDelegate delegate,
                       int action,
                       RadiusPluginEvent event)
                       throws RadiusPacketFailedAccessException
Retrieves attribute values from a RADIUS authorization response packet and updates the plug-in event with these values. The handling can be defined by different authorization response types.

Parameters:
delegate - An instance of the RadiusPacketDelegate interface which provides access to the RADIUS packet.
action - Encoded integer that defines the authorization response type. See RadiusPluginUtil.is*Resp()for details.
event - Instance of the plug-in event that keeps track of specified attribute values and that allows updates to these attributes.
Returns:
true if the action matches one or more authorization response type that is defined in this method.
Throws:
RadiusPacketFailedAccessException - Raised if the access to the RADIUS packet to obtain attribute values fails.

Core API 7.7