27.03.2013 Views

JBoss Enterprise Application Platform Common Criteria Certification ...

JBoss Enterprise Application Platform Common Criteria Certification ...

JBoss Enterprise Application Platform Common Criteria Certification ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

34 Chapter 6. The JNDI Naming Service<br />

Example 6.3. An example web.xml descriptor for secured access to the JNDI servlets<br />

<br />

<br />

<br />

<br />

<br />

JMXInvokerServlet<br />

<br />

org.jboss.invocation.http.servlet.InvokerServlet<br />

<br />

1<br />

<br />

JNDIFactory<br />

<br />

org.jboss.invocation.http.servlet.NamingFactoryServlet<br />

<br />

<br />

namingProxyMBean<br />

jboss:service=invoker,type=http,target=Naming<br />

<br />

<br />

proxyAttribute<br />

Proxy<br />

<br />

2<br />

<br />

<br />

<br />

JNDIFactory<br />

/restricted/JNDIFactory/*<br />

<br />

<br />

JMXInvokerServlet<br />

/restricted/JMXInvokerServlet/*<br />

<br />

<br />

HttpInvokers<br />

An example security config that only allows users with<br />

the role HttpInvoker to access the HTTP invoker servlets<br />

<br />

/restricted/*<br />

GET<br />

POST<br />

<br />

<br />

HttpInvoker<br />

<br />

<br />

<br />

BASIC<br />

<strong>JBoss</strong> HTTP Invoker<br />

<br />

HttpInvoker<br />

<br />

<br />

The web.xml descriptor only defines which sevlets are secured, and which roles are allowed to access<br />

the secured servlets. You must additionally define the security domain that will handle the authentication<br />

and authorization for the war. This is done through the jboss-web.xml descriptor, and an example<br />

that uses the http-invoker security domain is given below.<br />

<br />

java:/jaas/http-invoker<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!