public class AuthorizationResource extends Object
Constructor and Description |
---|
AuthorizationResource(Configuration configuration,
ServerConfiguration serverConfiguration,
Http http,
TokenCallable token) |
Modifier and Type | Method and Description |
---|---|
AuthorizationResponse |
authorize()
Query the server for all permissions.
|
AuthorizationResponse |
authorize(AuthorizationRequest request)
Query the server for permissions given an
AuthorizationRequest . |
public AuthorizationResource(Configuration configuration, ServerConfiguration serverConfiguration, Http http, TokenCallable token)
public AuthorizationResponse authorize() throws AuthorizationDeniedException
AuthorizationResponse
with a RPT holding all granted permissionsAuthorizationDeniedException
- in case the request was denied by the serverpublic AuthorizationResponse authorize(AuthorizationRequest request) throws AuthorizationDeniedException
AuthorizationRequest
.request
- an AuthorizationRequest
(not null
)AuthorizationResponse
with a RPT holding all granted permissionsAuthorizationDeniedException
- in case the request was denied by the serverCopyright © 2021 JBoss by Red Hat. All rights reserved.