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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthenticationKey
(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.void
Remove authentication key.
-
Constructor Details
-
AuthKeyDb
-
-
Method Details
-
addAuthenticationKey
Description copied from interface:IAuthKeyDb
Add authentication key.- Specified by:
addAuthenticationKey
in interfaceIAuthKeyDb
- Parameters:
eid
- The key for which the authentication key is addedauthKey
- The authentication key
-
getAuthenticationKey
Description copied from interface:IAuthKeyDb
Retrieve authentication key.- Specified by:
getAuthenticationKey
in interfaceIAuthKeyDb
- Parameters:
eid
- The key for which the authentication key is being looked up.- Returns:
- The authentication key.
-
removeAuthenticationKey
Description copied from interface:IAuthKeyDb
Remove authentication key.- Specified by:
removeAuthenticationKey
in interfaceIAuthKeyDb
- Parameters:
eid
- Key for which the authentication key should be removed.
-
printKeys
Description copied from interface:IAuthKeyDb
Print authentication keys in database. Used for testing, debugging and the karaf shell.- Specified by:
printKeys
in interfaceIAuthKeyDb
- Returns:
- a String consisting of all the authentication keys in the database
-
prettyPrintKeys
Description copied from interface:IAuthKeyDb
Print keys in cache in a human friendly format.- Specified by:
prettyPrintKeys
in interfaceIAuthKeyDb
- Returns:
- a String consisting of all the keys in the cache
-