Methods Summary |
---|
private static synchronized com.sun.enterprise.security.authorize.PolicyContextHandlerImpl | _getInstance()
if (pchimpl == null) {
pchimpl = new PolicyContextHandlerImpl();
}
return pchimpl;
|
public java.lang.Object | getContext(java.lang.String key, java.lang.Object data)
// ignore data Object
return getHandlerData().get(key);
|
public HandlerData | getHandlerData()
HandlerData handlerData = (HandlerData)thisHandlerData.get();
if (handlerData == null) {
handlerData = HandlerData.getInstance();
thisHandlerData.set(handlerData);
}
return handlerData;
|
public static javax.security.jacc.PolicyContextHandler | getInstance()
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
sm.checkPermission(new SecurityPermission("setPolicy"));
}
return _getInstance();
|
public java.lang.String[] | getKeys()
String[] s = {
HTTP_SERVLET_REQUEST,
SOAP_MESSAGE,
ENTERPRISE_BEAN,
SUBJECT,
EJB_ARGUMENTS,
REUSE
};
return s;
|
public boolean | supports(java.lang.String key)
String[] s = getKeys();
for (int i = 0; i<s.length; i++) {
if (s[i].equalsIgnoreCase(key)) {
return true;
}
}
return false;
|