Class AttributeFactory
- java.lang.Object
-
- org.forgerock.openam.radius.common.AttributeFactory
-
public final class AttributeFactory extends Object
Translates the attribute type code held in the first octet of the on-the-wire representation of a specific radius attribute into the corresponding java object used to interact with attribute fields of that type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributecreateAttribute(byte[] data)Performs the translation based upon the first octed in the passed in on-the-wire representation.
-
-
-
Method Detail
-
createAttribute
public static Attribute createAttribute(byte[] data)
Performs the translation based upon the first octed in the passed in on-the-wire representation.- Parameters:
data- the raw octets received in a radius packet on the wire for the attribute including leading attribute type code octet and length octet.- Returns:
- the corresponding subclass of the
Attributeclass or an instance of thecom.sun.identity.authentication.modules.radius.client.UnknownAttributeclass if the field type is unrecognized and hence not supported.
-
-