com.ibm.sec.authz.jaccplus
Class ApplicationSubjectContext
- java.lang.Object
com.ibm.sec.authz.jaccplus.ApplicationSubjectContext
All implemented interfaces:
- public class ApplicationSubjectContext
- extends java.lang.Object
- implements IEvaluationContextHandler
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 |
---|---|
|
SUBJECT_ATTRIBUTES_KEY
|
|
SUBJECT_KEY
|
Constructor Summary
Constructor and Description |
---|
ApplicationSubjectContext()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getContext(java.lang.String key,java.util.Map<java.lang.String,java.lang.Object> handlerData)
|
|
getKeys()
|
|
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
- public static final java.lang.String SUBJECT_KEY
See Also:
SUBJECT_ATTRIBUTES_KEY
- public static final java.lang.String SUBJECT_ATTRIBUTES_KEY
See Also:
Constructor Detail
ApplicationSubjectContext
- public ApplicationSubjectContext( )
Method Detail
getContext
- public 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.
Specified by:
getContext
in interface IEvaluationContextHandler
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
- 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:
getKeys
in interface IEvaluationContextHandler
Returns:
a string array of the supported keys.
supports
- 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:
supports
in interface IEvaluationContextHandler
Parameters:
key
- The key to retrieve the context data for. Returns:
boolean Whether or not the context data can be retrieved.
IEvaluationContextHandler