com.ibm.sec.authz.jaccplus.impl
Class ApplicationSubjectHandler

java.lang.Object
  extended by com.ibm.sec.authz.jaccplus.impl.AbstractSubjectHandler
      extended by com.ibm.sec.authz.jaccplus.impl.ApplicationSubjectHandler
All Implemented Interfaces:
IAttributesHandler

public class ApplicationSubjectHandler
extends AbstractSubjectHandler

This class is an instance of AttributesHandler that can be used to retrieve the Subject attributes when running outside of a WAS container. The Subject handler data needs to be set prior to trying to retrieve attributes.

Supported attributes are:

 "urn:oasis:names:tc:xacml:1.0:subject:subject-id"
 "urn:oasis:names:tc:xacml:1.0:subject:group-id"
 "http://security.tivoli.ibm.com/attributes/subject/authenticationToken"
 


Field Summary
 
Fields inherited from class com.ibm.sec.authz.jaccplus.impl.AbstractSubjectHandler
ATTR_AUTH_TOKEN, ATTR_GROUP_ID, ATTR_SUBJECT_ID
 
Constructor Summary
ApplicationSubjectHandler()
           
 
Method Summary
 java.util.List<java.lang.Object> getAttribute(java.lang.String key, EvaluationContext evalCtx)
          This method is used to retrieve all of the required attributes from the handler data.
 
Methods inherited from class com.ibm.sec.authz.jaccplus.impl.AbstractSubjectHandler
convertTokenToString, getSupportedAttributes, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationSubjectHandler

public ApplicationSubjectHandler()
Method Detail

getAttribute

public java.util.List<java.lang.Object> getAttribute(java.lang.String key,
                                                     EvaluationContext evalCtx)
                                              throws javax.security.jacc.PolicyContextException
Description copied from interface: IAttributesHandler
This method is used to retrieve all of the required attributes from the handler data.

Specified by:
getAttribute in interface IAttributesHandler
Specified by:
getAttribute in class AbstractSubjectHandler
Parameters:
key - The attribute key used to retrieve this attribute
evalCtx - The EvaluationContext in case any callbacks are required
Returns:
List. A list of all the attributes as Objects.
Throws:
javax.security.jacc.PolicyContextException


Copyright © 2009 IBM Corp. All Rights Reserved.