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

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

public class HasClassName
extends java.lang.Object
implements AuthorizationMethod

Implementation of AuthorizationMethod that checks whether a ContextListener has expected class name.

Author:
sanjin

Constructor Summary
HasClassName()
           
 
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

HasClassName

public HasClassName()
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.