com.ibm.sec.authz.jaccplus

Interface IEvaluationContextHandler

All known implementing classes:
ApplicationSubjectContext

  1. public interface IEvaluationContextHandler
This class provides the interface to various handlers of context data. Implementations of this class are registered with the EvaluationContext. This interface should rarely be implemented by application code, but should instead rely on the pre-registered context handlers.
See Also:
EvaluationContext

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getContext(java.lang.String key,java.util.Map<java.lang.String,java.lang.Object> handlerData)
Method to retrieve the context data for the passed key.
  1. java.lang.String[]
getKeys()
Method to return a list of all the keys supported by this handler.
  1. boolean
supports(java.lang.String key)
Method to find out if this handler instance can retrieve the context data for the given key.

Method Detail

supports

  1. boolean supports(java.lang.String key)
Method to find out if this handler instance can retrieve the context data for the given key.
Parameters:
key - The key to retrieve the context data for.
Returns:
boolean Whether or not the context data can be retrieved.

getKeys

  1. java.lang.String[] getKeys()
Method to return a list of all the keys supported by this handler.
Returns:
a string array of the supported keys.

getContext

  1. java.lang.Object getContext(java.lang.String key,
  2. java.util.Map<java.lang.String,java.lang.Object> handlerData)
Method to retrieve the context data for the passed key.
Parameters:
key - The key to retrieve the context data for.
handlerData - The handler on which to look up the context data using the key supplied. Optional.
Returns:
the context information for the key. If nothing is found, then the key is not supported.