Package org.tinyradius.packet
Interface RadiusPacket
- All Superinterfaces:
AttributeHolder
,NestedAttributeHolder
- All Known Subinterfaces:
MessageAuthSupport<T>
- All Known Implementing Classes:
AccessRequest
,AccessRequestChap
,AccessRequestEap
,AccessRequestPap
,AccessResponse
,AccountingRequest
,BaseRadiusPacket
,RadiusRequest
,RadiusResponse
public interface RadiusPacket extends NestedAttributeHolder
-
Field Summary
Fields Modifier and Type Field Description static int
HEADER_LENGTH
-
Method Summary
Modifier and Type Method Description RadiusPacket
copy()
java.util.List<RadiusAttribute>
getAttributes()
byte[]
getAuthenticator()
Returns the authenticator for this Radius packet.Dictionary
getDictionary()
byte
getId()
byte
getType()
Methods inherited from interface org.tinyradius.attribute.util.AttributeHolder
addAttribute, addAttribute, getAttribute, getAttribute, getAttributeBytes, getAttributeMap, getAttributes, getAttributes, getAttributeString, getChildVendorId, lookupAttributeType, removeAttributes, removeLastAttribute
Methods inherited from interface org.tinyradius.attribute.util.NestedAttributeHolder
addAttribute, getAttribute, getAttributes, getAttributes, getVendorSpecificAttributes, removeAttribute, removeAttributes, removeSubAttribute
-
Field Details
-
HEADER_LENGTH
static final int HEADER_LENGTH- See Also:
- Constant Field Values
-
-
Method Details
-
getType
byte getType()- Returns:
- Radius packet type
-
getId
byte getId()- Returns:
- Radius packet identifier
-
getAuthenticator
byte[] getAuthenticator()Returns the authenticator for this Radius packet.For a Radius packet read from a stream, this will return the authenticator sent by the server.
For a new Radius packet to be sent, this will return the authenticator created, or null if no authenticator has been created yet.
- Returns:
- authenticator, 16 bytes
-
getAttributes
java.util.List<RadiusAttribute> getAttributes()- Specified by:
getAttributes
in interfaceAttributeHolder
- Returns:
- list of RadiusAttributes in packet
-
getDictionary
Dictionary getDictionary()- Specified by:
getDictionary
in interfaceAttributeHolder
- Returns:
- the dictionary this Radius packet uses.
-
copy
RadiusPacket copy()- Returns:
- packet of same type as self, including intermediate fields
-