uk.org.ogsadai.authorization
Interface WorkflowAuthorizer

All Known Implementing Classes:
NullWorkflowAuthorizer

public interface WorkflowAuthorizer

Authorizes a workflow that is about to be executed as a sub-workflow from within an activity.

Author:
The OGSA-DAI Project Team.

Method Summary
 Workflow authorizeWorkflow(Workflow workflow, SecurityContext securityContext)
          Authorizes a workflow that is about to executed as a sub-workflow from within an activity.
 

Method Detail

authorizeWorkflow

Workflow authorizeWorkflow(Workflow workflow,
                           SecurityContext securityContext)
                           throws AuthorizationException
Authorizes a workflow that is about to executed as a sub-workflow from within an activity.

Parameters:
workflow - Workflow to be authorized.
securityContext - Ssecurity context containing requester's details.
Returns:
the workflow to execute. Most implementations will probably return the given workflow however this allows the possibility of the authorizer altering the workflow.
Throws:
AuthorizationException - If the request is not authorized.