net.ponder2.policy
Class AuthorisationModule

java.lang.Object
  extended by net.ponder2.policy.AuthorisationModule
Direct Known Subclasses:
BasicAuthModule

public abstract class AuthorisationModule
extends java.lang.Object

TODO Description

Version:
$Id:$
Author:
Kevin Twidle

Field Summary
static short PEP1
           
static short PEP2
           
static short PEP3
           
static short PEP4
           
protected  P2Object rootDomain
           
 
Constructor Summary
AuthorisationModule()
           
 
Method Summary
abstract  void reply(short pepType, char focus, AuthPolicyHolder holder, P2Object source, P2Object target, java.lang.String operation, P2Object[] args, P2Object returnedValue)
          Method that intercepts calls at PEP3 and PEP4 points.
abstract  void request(short pepType, char focus, AuthPolicyHolder holder, P2Object source, P2Object target, java.lang.String operation, P2Object[] args)
          Method that intercepts request calls at PEP1 and PEP2 points.
 void setRootDomain(P2Object rootDomain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PEP1

public static final short PEP1
See Also:
Constant Field Values

PEP2

public static final short PEP2
See Also:
Constant Field Values

PEP3

public static final short PEP3
See Also:
Constant Field Values

PEP4

public static final short PEP4
See Also:
Constant Field Values

rootDomain

protected P2Object rootDomain
Constructor Detail

AuthorisationModule

public AuthorisationModule()
Method Detail

setRootDomain

public void setRootDomain(P2Object rootDomain)

request

public abstract void request(short pepType,
                             char focus,
                             AuthPolicyHolder holder,
                             P2Object source,
                             P2Object target,
                             java.lang.String operation,
                             P2Object[] args)
                      throws Ponder2AuthorizationException
Method that intercepts request calls at PEP1 and PEP2 points.

Parameters:
pepType - either PEP1 or PEP2
focus - 's' or 't' for source or target
holder - the holder containing the policy for this operation
source - the ID of the subject
target - the ID of the target
operation - the operation invoked
args - the arguments of the operation
Throws:
Ponder2AuthorizationException - if the operation is not authorised

reply

public abstract void reply(short pepType,
                           char focus,
                           AuthPolicyHolder holder,
                           P2Object source,
                           P2Object target,
                           java.lang.String operation,
                           P2Object[] args,
                           P2Object returnedValue)
                    throws Ponder2AuthorizationException
Method that intercepts calls at PEP3 and PEP4 points.

Parameters:
pepType - either PEP3 or PEP4
focus - 's' or 't' for source or target
holder - the holder containing the policy for this operation
source - the ID of the subject
target - the ID of the target
operation - the operation invoked
args - the arguments of the operation
returnedValue - the value returned by the operation execution
Throws:
Ponder2AuthorizationException - if the operation is not authorised


Copyright © 2008 Imperial College. All Rights Reserved.