Package org.tinyradius.attribute

Examples of org.tinyradius.attribute.RadiusAttribute.writeAttribute()


  protected byte[] getAttributeBytes()
  throws IOException {
    ByteArrayOutputStream bos = new ByteArrayOutputStream(MAX_PACKET_LENGTH);
    for (Iterator i = attributes.iterator(); i.hasNext();) {
      RadiusAttribute a = (RadiusAttribute)i.next();
      bos.write(a.writeAttribute());
    }
    bos.flush();
    return bos.toByteArray();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.