public class ScopesSpec
extends Object
This class represents parsed Keycloak Authorization Services grants as returned by the token endpoint
-
Nested Class Summary
Nested Classes
static enum
Keycloak Authorization Services scope.
-
Method Summary
boolean
See if the specific operation is granted based on the list of grants contained in this instance of ScopesSpec.
-
Method Details
-
isGranted
public boolean isGranted(String operation)
See if the specific operation is granted based on the list of grants contained in this instance of ScopesSpec.
- Parameters:
operation - Operation (permission) name
- Returns:
- True if operation is granted
-