net.ponder2.policy
Class AuthorisationModule
java.lang.Object
net.ponder2.policy.AuthorisationModule
- Direct Known Subclasses:
- BasicAuthModule
public abstract class AuthorisationModule
- extends java.lang.Object
TODO Description
- Version:
- $Id:$
- Author:
- Kevin Twidle
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 |
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
AuthorisationModule
public AuthorisationModule()
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 PEP2focus
- 's' or 't' for source or targetholder
- the holder containing the policy for this operationsource
- the ID of the subjecttarget
- the ID of the targetoperation
- the operation invokedargs
- 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 PEP4focus
- 's' or 't' for source or targetholder
- the holder containing the policy for this operationsource
- the ID of the subjecttarget
- the ID of the targetoperation
- the operation invokedargs
- the arguments of the operationreturnedValue
- the value returned by the operation execution
- Throws:
Ponder2AuthorizationException
- if the operation is not authorised
Copyright © 2008 Imperial College. All Rights Reserved.