Package com.sun.enterprise.v3.admin
Class JobAuthorizationAttributeProcessor
- java.lang.Object
-
- com.sun.enterprise.v3.admin.JobAuthorizationAttributeProcessor
-
- All Implemented Interfaces:
AuthorizationPreprocessor
@Service @Singleton public class JobAuthorizationAttributeProcessor extends Object implements AuthorizationPreprocessor
Attaches a user attribute to job resources for authorization.- Author:
- Tim Quinn, Bhakti Mehta
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
JOB_PATTERN
static String
JOB_RESOURCE_NAME_PREFIX
static String
JOB_RESOURCE_NAME_PREFIX_NO_SLASH
-
Constructor Summary
Constructors Constructor Description JobAuthorizationAttributeProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
describeAuthorization(Subject subject, String resourceName, String action, AdminCommand command, Map<String,Object> context, Map<String,String> subjectAttributes, Map<String,String> resourceAttributes, Map<String,String> actionAttributes)
Optionally adds to the attributes that will be attached to the Subject, the resource, and the action used for an upcoming authorization check.
-
-
-
Field Detail
-
JOB_RESOURCE_NAME_PREFIX_NO_SLASH
public static final String JOB_RESOURCE_NAME_PREFIX_NO_SLASH
- See Also:
- Constant Field Values
-
JOB_RESOURCE_NAME_PREFIX
public static final String JOB_RESOURCE_NAME_PREFIX
- See Also:
- Constant Field Values
-
JOB_PATTERN
public static final Pattern JOB_PATTERN
-
-
Method Detail
-
describeAuthorization
public void describeAuthorization(Subject subject, String resourceName, String action, AdminCommand command, Map<String,Object> context, Map<String,String> subjectAttributes, Map<String,String> resourceAttributes, Map<String,String> actionAttributes)
Description copied from interface:AuthorizationPreprocessor
Optionally adds to the attributes that will be attached to the Subject, the resource, and the action used for an upcoming authorization check.- Specified by:
describeAuthorization
in interfaceAuthorizationPreprocessor
context
- map describing the authorization context (such as command parameter names and values)subjectAttributes
- name/value pairs for attributes to be attached to the subjectresourceAttributes
- name/value pairs for attributes to be attached to the resourceactionAttributes
- name/value pairs for attributes to be attached to the action
-
-