-
Method Summary
-
Method Details
-
int getVendorId()
- Returns:
- vendor Id if Vendor-Specific attribute or sub-attribute, otherwise -1
-
int getType()
- Returns:
- attribute type code, typically 0-255
-
byte getTag()
- Returns:
- Tag if available and specified for attribute type (RFC2868)
-
default byte[] getTagBytes()
- Returns:
- byte array of length 1 containing
getTag()
,
or empty byte array of length 0 if attribute does not support tags
-
byte[] getValue()
- Returns:
- attribute data as raw bytes
-
java.lang.String getValueString()
- Returns:
- value of this attribute as a hex string.
-
- Returns:
- dictionary that attribute uses
-
default byte[] toByteArray()
- Returns:
- entire attribute (including headers) as byte array
-
default java.lang.String getAttributeName()
-
Returns set of all nested attributes if contains sub-attributes,
otherwise singleton set of current attribute.
- Returns:
- List of RadiusAttributes
-
- Returns:
- AttributeTemplate used to define this attribute
-
Encodes attribute. Must be idempotent.
- Parameters:
requestAuth
- (corresponding) request packet authenticator
secret
- shared secret to encode with
- Returns:
- attribute with encoded data
- Throws:
RadiusPacketException
- errors encoding attribute
-
Decodes attribute. Must be idempotent.
- Parameters:
requestAuth
- (corresponding) request packet authenticator
secret
- shared secret to encode with
- Returns:
- attribute with encoded data
- Throws:
RadiusPacketException
- errors decoding attribute
-
default boolean isEncoded()