Package org.keycloak
Class AuthorizationContext
- java.lang.Object
-
- org.keycloak.AuthorizationContext
-
- Direct Known Subclasses:
ClientAuthorizationContext
public class AuthorizationContext extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description AuthorizationContext()
AuthorizationContext(AccessToken authzToken, PolicyEnforcerConfig.PathConfig current)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Permission>
getPermissions()
boolean
hasPermission(String resourceName, String scopeName)
boolean
hasResourcePermission(String resourceName)
boolean
hasScopePermission(String scopeName)
boolean
isGranted()
-
-
-
Constructor Detail
-
AuthorizationContext
public AuthorizationContext(AccessToken authzToken, PolicyEnforcerConfig.PathConfig current)
-
AuthorizationContext
public AuthorizationContext()
-
-
Method Detail
-
hasResourcePermission
public boolean hasResourcePermission(String resourceName)
-
hasScopePermission
public boolean hasScopePermission(String scopeName)
-
getPermissions
public List<Permission> getPermissions()
-
isGranted
public boolean isGranted()
-
-