public interface RadiusPacketDelegate
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String attrId,
long value)
Includes a specified RADIUS attribute and its value in a RADIUS packet.
|
void |
append(java.lang.String attrId,
java.lang.String value)
Includes a specified RADIUS attribute and its value in a RADIUS packet.
|
java.lang.Object[] |
getAttributeValues(java.lang.String attrId)
Retrieves the attribute values from a RADIUS packet that has a specified
identifier for an attribute.
|
void append(java.lang.String attrId, long value) throws RadiusPacketFailedAccessException
attrId
- Identifier for the attribute.value
- Value of the attribute. If value
is -1L, the
method ignores the attribute and does not raise an exception.RadiusPacketFailedAccessException
- Raised if attrId
does not correspond to a
valid RADIUS attribute or if the attribute is not of numeric
type.void append(java.lang.String attrId, java.lang.String value) throws RadiusPacketFailedAccessException
attrId
- Identifier for the attribute.value
- Value of the attribute. if value
is null or an
empty string, the method ignores the attribute and does not
raise an exception.RadiusPacketFailedAccessException
- Raised if attrId
does not correspond to a
valid RADIUS attribute, or if the attribute is not of type
string or text, or if the attribute is
of text type but value
cannot be encoded in
the UFT-8 format.java.lang.Object[] getAttributeValues(java.lang.String attrId) throws RadiusPacketFailedAccessException
attrId
- Identifier for the attribute.It returns an array of Long if the attribute is of type integer,address, or time.
It returns an array of String if the attribute is of type string or text.
It returns an empty array if the attribute is not found in the RADIUS packet.
RadiusPacketFailedAccessException
- Raised if attrId
does not correspond to a
valid RADIUS attribute or if type is different than the type
for the attribute.