at.ac.tuwien.infosys.sm4all.copal.api.security
Class InPackage

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.security.InPackage
All Implemented Interfaces:
AuthorizationMethod

public class InPackage
extends java.lang.Object
implements AuthorizationMethod

Implementation of AuthorizationMethod that checks whether a ContextListener is in expected package.

Author:
sanjin

Constructor Summary
InPackage()
           
 
Method Summary
 AuthorizationResult authorize(ContextListener listener, ContextEvent event, java.util.Map<java.lang.String,java.lang.String> attributes)
          Check whether specified ContextListener is allowed/denied to receive specified ContextEvent and using specified attributes to decide.
 java.lang.String getName()
          Returns the globally unique name of this AuthorizationMethod.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InPackage

public InPackage()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: AuthorizationMethod
Returns the globally unique name of this AuthorizationMethod.

Specified by:
getName in interface AuthorizationMethod
Returns:
the globally unique name of this AuthorizationMethod.

authorize

public AuthorizationResult authorize(ContextListener listener,
                                     ContextEvent event,
                                     java.util.Map<java.lang.String,java.lang.String> attributes)
Description copied from interface: AuthorizationMethod
Check whether specified ContextListener is allowed/denied to receive specified ContextEvent and using specified attributes to decide.

Specified by:
authorize in interface AuthorizationMethod
Parameters:
listener - the ContextListener.
event - ContextEvent.
attributes - the Map of attribute name to attribute value that is used in authorizing.
Returns:
the AuthorizationResult.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.