net.ponder2.policy
Class BasicAuthModule

java.lang.Object
  extended by net.ponder2.policy.AuthorisationModule
      extended by net.ponder2.policy.BasicAuthModule

public class BasicAuthModule
extends AuthorisationModule


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

Constructor Detail

BasicAuthModule

public BasicAuthModule(java.lang.String confStrgFile)
Method Detail

request

public void request(short pepType,
                    char focus,
                    AuthPolicyHolder holder,
                    P2Object subjectOID,
                    P2Object targetOID,
                    java.lang.String operation,
                    P2Object[] args)
             throws Ponder2AuthorizationException
Description copied from class: AuthorisationModule
Method that intercepts request calls at PEP1 and PEP2 points.

Specified by:
request in class AuthorisationModule
Parameters:
pepType - either PEP1 or PEP2
focus - 's' or 't' for source or target
holder - the holder containing the policy for this operation
subjectOID - the ID of the subject
targetOID - 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 void reply(short pepType,
                  char focus,
                  AuthPolicyHolder holder,
                  P2Object subjectOID,
                  P2Object targetOID,
                  java.lang.String operation,
                  P2Object[] args,
                  P2Object returnedValue)
           throws Ponder2AuthorizationException
Description copied from class: AuthorisationModule
Method that intercepts calls at PEP3 and PEP4 points.

Specified by:
reply in class AuthorisationModule
Parameters:
pepType - either PEP3 or PEP4
focus - 's' or 't' for source or target
holder - the holder containing the policy for this operation
subjectOID - the ID of the subject
targetOID - 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.