@Requirement(reqId="DOI_INTER_040", reqName="Interface avec la base de donn\u00e9es de gestion des tokens") public abstract class AbstractTokenDBHelper extends Object
Constructor and Description |
---|
AbstractTokenDBHelper() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
addToken(String jwt)
Adds a token in the database
|
abstract boolean |
deleteToken(String jwt)
Deletes a token from the database.
|
abstract List<String> |
getTokens()
Return the token list from database.
|
abstract boolean |
isExist(String jwt)
Tests if the token exists in the database.
|
public abstract boolean addToken(String jwt)
jwt
- a tokenpublic abstract boolean deleteToken(String jwt)
jwt
- the tokenpublic abstract boolean isExist(String jwt)
jwt
- the tokenpublic abstract List<String> getTokens() throws DOIDbException
DOIDbException
- when an error occursCopyright © 2017–2020 CNES. All rights reserved.