public interface AuthProvider
| Modifier and Type | Method and Description |
|---|---|
Permission[] |
getAllAllowedPermissions(String accessToken)
Get an array of all the permissions allowed for a user.
|
boolean |
isTokenValid(String token,
Permission requiredPermission)
Validate the token.
|
boolean isTokenValid(String token, Permission requiredPermission) throws AuthProviderException
token - The token of which the validity should be checkedrequiredPermission - The permission required by the userAuthProviderException - if validating the token failsPermission[] getAllAllowedPermissions(String accessToken) throws AuthProviderException
accessToken - The access token sent for the actionAuthProviderException - if checking the authorized runtime namespaces failedCopyright © 2019 WSO2. All rights reserved.