net.sf.jradius.freeradius
Class FreeRadiusFormat
java.lang.Object
net.sf.jradius.packet.RadiusFormat
net.sf.jradius.freeradius.FreeRadiusFormat
public class FreeRadiusFormat
- extends RadiusFormat
Packs and Unpacks Radius Packets and Attributes for the FreeRADIUS Server.
- Author:
- David Bird
| Methods inherited from class net.sf.jradius.packet.RadiusFormat |
getInstance, packAttribute, packAttributeList, packHeader, packPacket, readUnsignedByte, readUnsignedInt, readUnsignedShort, unpackAttributes, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FreeRadiusFormat
public FreeRadiusFormat()
setAttributeBytes
public static void setAttributeBytes(RadiusPacket p,
byte[] bAttributes)
- See Also:
RadiusFormat.setAttributeBytes(net.sf.jradius.packet.RadiusPacket, byte[])
packHeader
public void packHeader(java.io.OutputStream out,
RadiusPacket p,
byte[] attributeBytes)
throws java.io.IOException
- Description copied from class:
RadiusFormat
- Packs the RadiusPacket into a DataOutputStream
- Overrides:
packHeader in class RadiusFormat
- Parameters:
out - The DataOutputStream to write top - The RadiusPacket to packattributeBytes - The RadiusPacket attributes
- Throws:
java.io.IOException- See Also:
RadiusFormat.packHeader(java.io.OutputStream, net.sf.jradius.packet.RadiusPacket, byte[])
packHeader
public void packHeader(java.io.OutputStream out,
RadiusAttribute a)
throws java.io.IOException
- Description copied from class:
RadiusFormat
- Packs a RadiusAttribute header into a DataOutputStream
- Overrides:
packHeader in class RadiusFormat
- Parameters:
out - The DataOutputStream to write toa - The RadiusAttribute to pack
- Throws:
java.io.IOException- See Also:
RadiusFormat.packHeader(java.io.OutputStream, net.sf.jradius.packet.attribute.RadiusAttribute)
unpackAttributeHeader
protected int unpackAttributeHeader(java.io.InputStream in,
RadiusFormat.AttributeParseContext ctx)
throws java.io.IOException
- Description copied from class:
RadiusFormat
- Unpacks the header of a RadiusAttribute from a DataInputStream
- Overrides:
unpackAttributeHeader in class RadiusFormat
- Parameters:
in - The DataInputStream to read fromctx - The Attribute Parser Context
- Returns:
- Returns the additional offset length for this header
- Throws:
java.io.IOException- See Also:
RadiusFormat.unpackAttributeHeader(java.io.InputStream, net.sf.jradius.packet.RadiusFormat.AttributeParseContext)
Copyright © 2006 The JRadius Project, All Rights Reserved.