net.sf.jradius.packet
Class RadiusResponse

java.lang.Object
  extended by net.sf.jradius.packet.RadiusPacket
      extended by net.sf.jradius.packet.RadiusResponse
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessAccept, AccessChallenge, AccessReject, AccountingResponse, CoAACK, CoANAK, DisconnectACK, DisconnectNAK, PasswordAck, PasswordReject

public abstract class RadiusResponse
extends RadiusPacket

The RADIUS Response Packet

Author:
David Bird
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jradius.packet.RadiusPacket
attributes, authenticator, code, identifier, MAX_PACKET_LENGTH, MIN_PACKET_LENGTH, RADIUS_HEADER_LENGTH
 
Constructor Summary
RadiusResponse()
           
 
Method Summary
 boolean verifyAuthenticator(RadiusClient client, byte[] requestAuthenticator)
          Calculates and compares the RADIUS Response Authenticator (per RFC 2865)
 
Methods inherited from class net.sf.jradius.packet.RadiusPacket
addAttribute, addAttributes, createAuthenticator, findAttribute, findAttribute, findAttributes, getAttributes, getAttributeValue, getAttributeValue, getAuthenticator, getAuthenticator, getCode, getIdentifier, overwriteAttribute, removeAttribute, removeAttribute, setAuthenticator, setCode, setIdentifier, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadiusResponse

public RadiusResponse()
Method Detail

verifyAuthenticator

public boolean verifyAuthenticator(RadiusClient client,
                                   byte[] requestAuthenticator)
Calculates and compares the RADIUS Response Authenticator (per RFC 2865)

Parameters:
client - The RadiusClient being used
requestAuthenticator - The Authenticator of the request
Returns:
Returns true of the authenticators match


Copyright © 2006 The JRadius Project, All Rights Reserved.