uk.org.ogsadai.authorization
Class NullWorkflowAuthorizer

java.lang.Object
  extended by uk.org.ogsadai.authorization.NullWorkflowAuthorizer
All Implemented Interfaces:
WorkflowAuthorizer

public class NullWorkflowAuthorizer
extends java.lang.Object
implements WorkflowAuthorizer

Workflow authorizer that always authorizes any the given workflow. This is used when no workflow authorizer has been specified.

Author:
The OGSA-DAI Project Team

Constructor Summary
NullWorkflowAuthorizer()
          Constructor.
 
Method Summary
 Workflow authorizeWorkflow(Workflow workflow, SecurityContext securityContext)
          Authorizes a workflow that is about to executed as a sub-workflow from within an activity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullWorkflowAuthorizer

public NullWorkflowAuthorizer()
Constructor.

Method Detail

authorizeWorkflow

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

Specified by:
authorizeWorkflow in interface WorkflowAuthorizer
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.