|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectNAS
NAS (RADIUS Client) information. Class holding information about a NAS (Network Access Server, or RADIUS client).
RADIUSServer.addNAS(com.theorem.radserver3.NAS)| Field Summary | |
String |
NAS_Address
The string version of the NAS IP address. |
InetAddress |
NASAddress
The NAS IP Address. |
boolean |
NASIdEnforced
Unused |
String |
NASIdentifier
The NAS's name. |
String |
secret
The secret shared by the NAS and RADIUS server Required. |
| Constructor Summary | |
NAS()
Default constructor. |
|
NAS(InetAddress addr,
String secret)
Constructor to fill the fields. |
|
NAS(InetAddress addr,
String id,
String secret)
Constructor to fill the fields. |
|
| Method Summary | |
void |
addLongVendorSpecificTags(int vendorId)
Enable the reception of long Vendor-Specific attribute tags for this NAS. |
boolean |
allowCoARequests()
Determine if this NAS can recieve CoA requests.. |
boolean |
allowDisconnectRequests()
Determine if this NAS can recieve DM requests. |
void |
enableCoARequests(boolean enable)
Enable a NAS to receive CoA-Requests. |
void |
enableDMRequests(boolean enable)
Enable a NAS to receive Disconnect-Requests. |
boolean |
equals(Object obj)
Determine if one NAS object is equal to this one. |
InetAddress |
getAddress()
Get the NAS IP address. |
String |
getIdentifier()
Get the NAS-Identifer value. |
byte[] |
getSecret()
Get the secret. |
int |
hashCode()
Get the hash code. |
boolean |
hasLongVendorSpecificTags(int vendorId)
Determine if long attribute tags are enabled for this Vendor. |
String |
toString()
Return a string representation of the NAS. |
boolean |
verify()
Check this NAS entry for the necessities. |
| Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public String NAS_Address
public InetAddress NASAddress
public boolean NASIdEnforced
public String NASIdentifier
public String secret
| Constructor Detail |
public NAS()
public NAS(InetAddress addr,
String secret)
addr - NASAddress.secret - Shared secret.NASAddress,
secret
public NAS(InetAddress addr,
String id,
String secret)
addr - NASAddress.id - NAS-Identifiersecret - Shared secret.NASAddress,
secret| Method Detail |
public void addLongVendorSpecificTags(int vendorId)
vendorId - Permit long VSA tags for this Vendor-Id.hasLongVendorSpecificTags(int vendorId)public boolean allowCoARequests()
public boolean allowDisconnectRequests()
public void enableCoARequests(boolean enable)
enable - Set to true to enable CoA-Requests (Change-of-Authorization).public void enableDMRequests(boolean enable)
enable - Set to true to enable Disconnect-Requests.public boolean equals(Object obj)
obj - Object
public InetAddress getAddress()
public String getIdentifier()
public byte[] getSecret()
public int hashCode()
public boolean hasLongVendorSpecificTags(int vendorId)
This is commonly used with the Vendor-Specific class to extract or create long tags in the sub-attributes. For example this might be used in AccessImpl as:
public void authenticate(AuthInfo auth)
{
AttributeList inList = auth.getRequestAttributeList();
...
// Get the originating NAS information.
NAS n = auth.getNAS();
// Use the NAS information to extract the VSA sub-attributes
// depending on the vendor id.
VendorSpecific vs[] = inList.getVendorSpecific(2000,
n.hasLongVendorSpecificTags(2000));
...
}
vendorId - The vendor Id.
public String toString()
public boolean verify()
throws RADIUSServerException
RADIUSServerException - if the NAS object is missing it's NASAddress
field or the secret is null.
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||