public interface TokenManager
Modifier and Type | Interface and Description |
---|---|
static interface |
TokenManager.TokenCreationCallback
This interface can be used by the application, when they call createToken() method.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getTokenNames()
Gets the available token names.
|
boolean |
removeToken(java.lang.String name)
Removes an existing token.
|
boolean |
removeToken(Token token)
Removes an existing token.
|
java.util.Set<java.lang.String> getTokenNames() throws IdpStorageException
Set
<String
>.IdpStorageException
- when database operation failed.boolean removeToken(java.lang.String name) throws IdpException
name
- the token nametrue
if it existed and was removed, otherwise
false
IdpStorageException
- when database operation failed.IdpException
boolean removeToken(Token token) throws IdpException
token
- the token to removetrue
if it existed and was removed, otherwise
false
IdpException
- this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException
- when database operation failed.IdpAuthException
- when Authentication module assets removal failed.