Core API 7.6

net.juniper.smgt.sae.radiuslib
Class RadiusPluginUtil

java.lang.Object
  extended by net.juniper.smgt.sae.radiuslib.RadiusPluginUtil

public class RadiusPluginUtil
extends Object

This class provides static methods to handle (interpret or decode) encoded actions which are numeric representations of a RADIUS request or response. It also provides methods to manipulate RADIUS data.


Constructor Summary
RadiusPluginUtil()
           
 
Method Summary
static long getHighWord(long l)
          Retrieves the high 32 bits of a long value.
static long getLowWord(long l)
          Retrieves the low 32 bits of a long value.
static boolean isAcctOffRequest(int action)
          Checks whether the action that the method receives is for an Accounting-Off request.
static boolean isAcctOnOffRequest(int action)
          Checks whether the action that the method receives is for an Accounting-On or Accounting-Off request.
static boolean isAcctOnRequest(int action)
          Checks whether the action that the method receives is for an Accounting-On request.
static boolean isAcctRequest(int action)
          Checks whether the action that the method receives is for an accounting request.
static boolean isAuthRequest(int action)
          Checks whether the action that the method receives is for an authorization request.
static boolean isAuthResp(int action)
          Checks whether the action that the method receives is for an authorization response.
static boolean isDhcpAuthRequest(int action)
          Checks whether the action that the method receives is for a DHCP authorization request.
static boolean isDhcpAuthResp(int action)
          Checks whether the action that the method receives is for a DHCP authorization response.
static boolean isStartRequest(int action)
          Checks whether the action that the method receives is for a start request.
static boolean isStartStopRequest(int action)
          Checks whether the action that the method receives is for a start or stop request.
static boolean isStopRequest(int action)
          Checks whether the action that the method receives is for a stop request.
static boolean isSvcAcctRequest(int action)
          Checks whether the action that the method receives is for a service session start, stop or interim request.
static boolean isSvcAuthRequest(int action)
          Checks whether the action that the method receives is for a service authorization request.
static boolean isSvcAuthResp(int action)
          Checks whether the action that the method receives is for a service session authorization response.
static boolean isSvcStartRequest(int action)
          Checks whether the action that the method receives is for a service session start request.
static boolean isSvcStopRequest(int action)
          Checks whether the action that the method receives is for a service session stop request.
static boolean isUserAcctRequest(int action)
          Checks whether the action that the method receives is for a subscriber session start, stop or interim request.
static boolean isUserAuthRequest(int action)
          Checks whether the action that the method receives is for a user authorization request.
static boolean isUserAuthResp(int action)
          Checks whether the action that the method receives is for a subscriber session authorization response.
static boolean isUserStartRequest(int action)
          Checks whether the action that the method receives is for a subscriber session start request.
static boolean isUserStopRequest(int action)
          Checks whether the action that the method receives is for a subscriber session stop request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadiusPluginUtil

public RadiusPluginUtil()
Method Detail

isStartRequest

public static boolean isStartRequest(int action)
Checks whether the action that the method receives is for a start request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a start request.

isStopRequest

public static boolean isStopRequest(int action)
Checks whether the action that the method receives is for a stop request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a stop request.

isStartStopRequest

public static boolean isStartStopRequest(int action)
Checks whether the action that the method receives is for a start or stop request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a start or stop request.

isUserStartRequest

public static boolean isUserStartRequest(int action)
Checks whether the action that the method receives is for a subscriber session start request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a subscriber session start request.

isUserStopRequest

public static boolean isUserStopRequest(int action)
Checks whether the action that the method receives is for a subscriber session stop request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a subscriber session stop request.

isUserAcctRequest

public static boolean isUserAcctRequest(int action)
Checks whether the action that the method receives is for a subscriber session start, stop or interim request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a subscriber session start, stop or interim request.

isSvcAcctRequest

public static boolean isSvcAcctRequest(int action)
Checks whether the action that the method receives is for a service session start, stop or interim request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a service session start, stop or interim request.

isSvcStartRequest

public static boolean isSvcStartRequest(int action)
Checks whether the action that the method receives is for a service session start request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a service session start request.

isSvcStopRequest

public static boolean isSvcStopRequest(int action)
Checks whether the action that the method receives is for a service session stop request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a service session stop request.

isAcctOnRequest

public static boolean isAcctOnRequest(int action)
Checks whether the action that the method receives is for an Accounting-On request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for an Accounting-On request.

isAcctOffRequest

public static boolean isAcctOffRequest(int action)
Checks whether the action that the method receives is for an Accounting-Off request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for an Accounting-Off request.

isAcctOnOffRequest

public static boolean isAcctOnOffRequest(int action)
Checks whether the action that the method receives is for an Accounting-On or Accounting-Off request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for an Accounting-On or Accounting-Off request.

isAcctRequest

public static boolean isAcctRequest(int action)
Checks whether the action that the method receives is for an accounting request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for an accounting request.

isAuthRequest

public static boolean isAuthRequest(int action)
Checks whether the action that the method receives is for an authorization request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for an authorization request.

isUserAuthRequest

public static boolean isUserAuthRequest(int action)
Checks whether the action that the method receives is for a user authorization request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a user authorization request.

isSvcAuthRequest

public static boolean isSvcAuthRequest(int action)
Checks whether the action that the method receives is for a service authorization request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a service authorization request.

isDhcpAuthRequest

public static boolean isDhcpAuthRequest(int action)
Checks whether the action that the method receives is for a DHCP authorization request.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a DHCP authorization request.

isAuthResp

public static boolean isAuthResp(int action)
Checks whether the action that the method receives is for an authorization response.

Parameters:
action - Encoded action.
Returns:
true if the action received is for an authorization response.

isUserAuthResp

public static boolean isUserAuthResp(int action)
Checks whether the action that the method receives is for a subscriber session authorization response.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a subscriber session authorization response.

isSvcAuthResp

public static boolean isSvcAuthResp(int action)
Checks whether the action that the method receives is for a service session authorization response.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a service session authorization response.

isDhcpAuthResp

public static boolean isDhcpAuthResp(int action)
Checks whether the action that the method receives is for a DHCP authorization response.

Parameters:
action - Encoded action.
Returns:
true if the action received is for a DHCP authorization response.

getHighWord

public static long getHighWord(long l)
Retrieves the high 32 bits of a long value.

Parameters:
l - a long to be treated.
Returns:
High 32 bits of a long.

getLowWord

public static long getLowWord(long l)
Retrieves the low 32 bits of a long value.

Parameters:
l - a long to be treated.
Returns:
Low 32 bits of a long.

Core API 7.6