Class PolicyContextHandlerImpl
- java.lang.Object
-
- com.sun.enterprise.security.jacc.context.PolicyContextHandlerImpl
-
- All Implemented Interfaces:
jakarta.security.jacc.PolicyContextHandler
public class PolicyContextHandlerImpl extends Object implements jakarta.security.jacc.PolicyContextHandler
This class is created by the container and handed over to the JACC provider. This lets the JACC provider use the information in making authorization decisions, if it wishes to do so.Instead of having separate classes for each handler, we only implement one handler that handles all requests for the context objects. This class implements the PolicyContextHandler interface, but resolving of the actual objects is delegated to
PolicyContextHandlerData
.- Author:
- Harpreet Singh, Shing Wai Chan
-
-
Field Summary
Fields Modifier and Type Field Description static String
EJB_ARGUMENTS
static String
ENTERPRISE_BEAN
static String
HTTP_SERVLET_REQUEST
static String
REUSE
static String
SOAP_MESSAGE
static String
SUBJECT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getContext(String key, Object data)
PolicyContextHandlerData
getHandlerData()
static jakarta.security.jacc.PolicyContextHandler
getInstance()
String[]
getKeys()
void
reset()
boolean
supports(String key)
-
-
-
Field Detail
-
HTTP_SERVLET_REQUEST
public static final String HTTP_SERVLET_REQUEST
- See Also:
- Constant Field Values
-
SOAP_MESSAGE
public static final String SOAP_MESSAGE
- See Also:
- Constant Field Values
-
ENTERPRISE_BEAN
public static final String ENTERPRISE_BEAN
- See Also:
- Constant Field Values
-
EJB_ARGUMENTS
public static final String EJB_ARGUMENTS
- See Also:
- Constant Field Values
-
SUBJECT
public static final String SUBJECT
- See Also:
- Constant Field Values
-
REUSE
public static final String REUSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static jakarta.security.jacc.PolicyContextHandler getInstance()
-
supports
public boolean supports(String key)
- Specified by:
supports
in interfacejakarta.security.jacc.PolicyContextHandler
-
getKeys
public String[] getKeys()
- Specified by:
getKeys
in interfacejakarta.security.jacc.PolicyContextHandler
-
getContext
public Object getContext(String key, Object data)
- Specified by:
getContext
in interfacejakarta.security.jacc.PolicyContextHandler
-
getHandlerData
public PolicyContextHandlerData getHandlerData()
-
reset
public void reset()
-
-