Class 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 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 Attribute class or an instance of the com.sun.identity.authentication.modules.radius.client.UnknownAttribute class if the field type is unrecognized and hence not supported.