public class CelleryLocalAuthProvider extends Object implements AuthProvider
| Constructor and Description |
|---|
CelleryLocalAuthProvider() |
| Modifier and Type | Method and Description |
|---|---|
Permission[] |
getAllAllowedPermissions(String accessToken)
Get an array of all the permissions allowed for a user.
|
protected boolean |
isTokenValid(String token)
Validate if a token is a valid token issued by the IdP.
|
boolean |
isTokenValid(String token,
Permission requiredPermission)
Validate the token.
|
public CelleryLocalAuthProvider()
throws AuthProviderException
AuthProviderExceptionpublic boolean isTokenValid(String token, Permission requiredPermission) throws AuthProviderException
AuthProviderisTokenValid in interface AuthProvidertoken - The token of which the validity should be checkedrequiredPermission - The permission required by the userAuthProviderException - if validating the token failspublic Permission[] getAllAllowedPermissions(String accessToken)
AuthProvidergetAllAllowedPermissions in interface AuthProvideraccessToken - The access token sent for the actionprotected boolean isTokenValid(String token) throws AuthProviderException
token - The token to be validatedAuthProviderException - If validating failsCopyright © 2019 WSO2. All rights reserved.