public class AuthorizationHandler extends Object
| Constructor and Description |
|---|
AuthorizationHandler(Authorizer authorizer) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAuthResource(ResourceType resourceType,
String resourceName,
boolean durable,
Subject subject)
Create auth resource.
|
void |
deleteAuthResource(ResourceType resourceType,
String resourceName)
Delete auth resource.
|
void |
handle(ResourceAuthScope brokerAuthScope,
ResourceType resourceType,
String resourceName,
ResourceAction action,
Subject subject)
Handle given auth scope and auth resource authorization.
|
void |
handle(ResourceAuthScope authScope,
Subject subject)
Handle given auth scope authorization.
|
void |
handle(ResourceType resourceType,
String resourceName,
ResourceAction action,
Subject subject)
Handle given auth scope authorization.
|
public AuthorizationHandler(Authorizer authorizer)
public void handle(ResourceAuthScope brokerAuthScope, ResourceType resourceType, String resourceName, ResourceAction action, Subject subject) throws AuthException, AuthNotFoundException
brokerAuthScope - auth scoperesourceType - resource typeresourceName - resource nameaction - actionAuthException - throws if error occurs while authorizing resource.AuthNotFoundExceptionpublic void handle(ResourceType resourceType, String resourceName, ResourceAction action, Subject subject) throws AuthException, AuthNotFoundException
resourceType - resource typeresourceName - resource nameaction - actionAuthException - throws if error occurs while authorizing resource.AuthNotFoundExceptionpublic void handle(ResourceAuthScope authScope, Subject subject) throws AuthException
authScope - authScopeAuthException - throws if error occurs while authorizing resource.public void createAuthResource(ResourceType resourceType, String resourceName, boolean durable, Subject subject) throws AuthException
resourceType - resource typeresourceName - resource namedurable - is durableAuthException - throws if error occurs while authorizing resource.public void deleteAuthResource(ResourceType resourceType, String resourceName) throws AuthException, io.ballerina.messaging.broker.common.ResourceNotFoundException
resourceType - resource typeresourceName - resource nameAuthException - throws if error occurs while authorizing resource.io.ballerina.messaging.broker.common.ResourceNotFoundExceptionCopyright © 2018 WSO2. All rights reserved.