Interface IAuthKeyDb
-
- All Known Implementing Classes:
AuthKeyDb
public interface IAuthKeyDb
Authentication key database interface.- Author:
- Lorand Jakab
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAuthenticationKey(Eid key, MappingAuthkey authKey)
Add authentication key.MappingAuthkey
getAuthenticationKey(Eid key)
Retrieve authentication key.java.lang.String
prettyPrintKeys()
Print keys in cache in a human friendly format.java.lang.String
printKeys()
Print authentication keys in database.void
removeAuthenticationKey(Eid key)
Remove authentication key.
-
-
-
Method Detail
-
addAuthenticationKey
void addAuthenticationKey(Eid key, MappingAuthkey authKey)
Add authentication key.- Parameters:
key
- The key for which the authentication key is addedauthKey
- The authentication key
-
getAuthenticationKey
MappingAuthkey getAuthenticationKey(Eid key)
Retrieve authentication key.- Parameters:
key
- The key for which the authentication key is being looked up.- Returns:
- The authentication key.
-
removeAuthenticationKey
void removeAuthenticationKey(Eid key)
Remove authentication key.- Parameters:
key
- Key for which the authentication key should be removed.
-
printKeys
java.lang.String printKeys()
Print authentication keys in database. Used for testing, debugging and the karaf shell.- Returns:
- a String consisting of all the authentication keys in the database
-
prettyPrintKeys
java.lang.String prettyPrintKeys()
Print keys in cache in a human friendly format.- Returns:
- a String consisting of all the keys in the cache
-
-