at.ac.tuwien.infosys.sm4all.copal.api.security
Interface AuthorizationMethod

All Known Implementing Classes:
HasClassName, HasToken, InPackage

public interface AuthorizationMethod

The interface for methods of Authorizations that can allow or deny a ContextListener to receive a ContextEvent.

Author:
sanjin

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.
 

Method Detail

getName

java.lang.String getName()
Returns the globally unique name of this AuthorizationMethod.

Returns:
the globally unique name of this AuthorizationMethod.

authorize

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.

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.