Class AuthKeyDb
java.lang.Object
org.opendaylight.lispflowmapping.mapcache.AuthKeyDb
- All Implemented Interfaces:
IAuthKeyDb
Simple in-memory database for authentication keys, that works with 'simple' addresses (see lisp-proto.yang). It can
do longest prefix matching for IP addresses.
- Author:
- Lorand Jakab
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthenticationKey(Eid eid, MappingAuthkey authKey) Add authentication key.getAuthenticationKey(Eid eid) Retrieve authentication key.Print keys in cache in a human friendly format.Print authentication keys in database.voidRemove authentication key.
-
Constructor Details
-
AuthKeyDb
-
-
Method Details
-
addAuthenticationKey
Description copied from interface:IAuthKeyDbAdd authentication key.- Specified by:
addAuthenticationKeyin interfaceIAuthKeyDb- Parameters:
eid- The key for which the authentication key is addedauthKey- The authentication key
-
getAuthenticationKey
Description copied from interface:IAuthKeyDbRetrieve authentication key.- Specified by:
getAuthenticationKeyin interfaceIAuthKeyDb- Parameters:
eid- The key for which the authentication key is being looked up.- Returns:
- The authentication key.
-
removeAuthenticationKey
Description copied from interface:IAuthKeyDbRemove authentication key.- Specified by:
removeAuthenticationKeyin interfaceIAuthKeyDb- Parameters:
eid- Key for which the authentication key should be removed.
-
printKeys
Description copied from interface:IAuthKeyDbPrint authentication keys in database. Used for testing, debugging and the karaf shell.- Specified by:
printKeysin interfaceIAuthKeyDb- Returns:
- a String consisting of all the authentication keys in the database
-
prettyPrintKeys
Description copied from interface:IAuthKeyDbPrint keys in cache in a human friendly format.- Specified by:
prettyPrintKeysin interfaceIAuthKeyDb- Returns:
- a String consisting of all the keys in the cache
-