public class AuthKeyDb extends Object implements IAuthKeyDb
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationKey(Eid eid,
MappingAuthkey authKey)
Add authentication key.
|
MappingAuthkey |
getAuthenticationKey(Eid eid)
Retrieve authentication key.
|
String |
prettyPrintKeys()
Print keys in cache in a human friendly format.
|
String |
printKeys()
Print authentication keys in database.
|
void |
removeAuthenticationKey(Eid eid)
Remove authentication key.
|
public AuthKeyDb(ILispDAO dao)
public void addAuthenticationKey(Eid eid, MappingAuthkey authKey)
IAuthKeyDb
addAuthenticationKey
in interface IAuthKeyDb
eid
- The key for which the authentication key is addedauthKey
- The authentication keypublic MappingAuthkey getAuthenticationKey(Eid eid)
IAuthKeyDb
getAuthenticationKey
in interface IAuthKeyDb
eid
- The key for which the authentication key is being looked up.public void removeAuthenticationKey(Eid eid)
IAuthKeyDb
removeAuthenticationKey
in interface IAuthKeyDb
eid
- Key for which the authentication key should be removed.public String printKeys()
IAuthKeyDb
printKeys
in interface IAuthKeyDb
public String prettyPrintKeys()
IAuthKeyDb
prettyPrintKeys
in interface IAuthKeyDb
Copyright © 2019 OpenDaylight. All rights reserved.