Package org.tinyradius.core.dictionary
Interface CoreDictionary
- All Known Subinterfaces:
Dictionary
,WritableDictionary
- All Known Implementing Classes:
MemoryDictionary
public interface CoreDictionary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<AttributeTemplate>
getAttributeTemplate
(int type) Returns the AttributeTemplate for the vendor -1 from the cache.getAttributeTemplate
(int vendorId, int type) Retrieves an AttributeTemplate for a vendor-specific attribute.getAttributeTemplate
(String name) Retrieves an AttributeTemplate by name.getVendor
(int vendorId) Retrieves the vendor with the given vendor code.Retrieves the ID of the vendor with the given name.
-
Method Details
-
getAttributeTemplate
Retrieves an AttributeTemplate by name. This includes vendor-specific attribute types whose name is prefixed by the vendor name.- Parameters:
name
- attribute name- Returns:
- AttributeTemplate object or null
-
getAttributeTemplate
Returns the AttributeTemplate for the vendor -1 from the cache.- Parameters:
type
- type 1-255- Returns:
- AttributeTemplate
-
getAttributeTemplate
Retrieves an AttributeTemplate for a vendor-specific attribute.- Parameters:
vendorId
- vendorId if appropriate or -1type
- type 1-255- Returns:
- AttributeTemplate
-
getVendor
Retrieves the vendor with the given vendor code.- Parameters:
vendorId
- vendor number- Returns:
- vendor
-
getVendor
Retrieves the ID of the vendor with the given name.- Parameters:
vendorName
- name of the vendor- Returns:
- vendorId or -1
-