com.ibm.sec.authz.jaccplus

Class ApplicationSubjectContext

  1. java.lang.Object
  2. extended bycom.ibm.sec.authz.jaccplus.ApplicationSubjectContext
All implemented interfaces:
IEvaluationContextHandler

  1. public class ApplicationSubjectContext
  2. extends java.lang.Object
  3. implements IEvaluationContextHandler
An IEvaluationContextHandler implementation for the handling of the Subject and SubjectAttributes keys when container security is not used.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
SUBJECT_ATTRIBUTES_KEY
  1. static
  2. java.lang.String
SUBJECT_KEY

Constructor Summary

Constructor and Description
ApplicationSubjectContext()

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)
  1. java.lang.String[]
getKeys()
  1. boolean
supports(java.lang.String key)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

SUBJECT_KEY

  1. public static final java.lang.String SUBJECT_KEY
See Also:

SUBJECT_ATTRIBUTES_KEY

  1. public static final java.lang.String SUBJECT_ATTRIBUTES_KEY
See Also:

Constructor Detail

ApplicationSubjectContext

  1. public ApplicationSubjectContext( )

Method Detail

getContext

  1. public java.lang.Object getContext( java.lang.String key,
  2. java.util.Map<java.lang.String,java.lang.Object> handlerData)
Description copied from interface: IEvaluationContextHandler
Method to retrieve the context data for the passed key.
Specified by:
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.

getKeys

  1. public java.lang.String[] getKeys( )
Description copied from interface: IEvaluationContextHandler
Method to return a list of all the keys supported by this handler.
Specified by:
Returns:
a string array of the supported keys.

supports

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