开发者

Deployment secription of Basic Authentication with JAX-WS for EJB 3.1

开发者 https://www.devze.com 2022-12-29 22:35 出处:网络
There is good tutorial Basic Authentication withJAX-WS But it describe deployment description for web based application (war). Is it passable describe in ejb jar deployment description ?

There is good tutorial Basic Authentication with JAX-WS

But it describe deployment description for web based application (war). Is it passable describe in ejb jar deployment description ?

For web.xml

<security-constraint>
        <display-name>SecurityConstraint</display-name>
        <web-resource-collection>
             <web-resource-name>WRCollection</web-resource-name>
            <url-pattern>/hello</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>TutorialUser</role-name>
        </auth-constraint>
        <user-data-constrain开发者_运维百科t>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
    <login-config>
        <auth-constraint>BASIC</auth-constraint>
        <realm-name>file</realm-name>
    </login-config>
        <security-role>
            <role-name>TutorialUser</role-name>
        </security-role>

I found out description of security rules by annotation -

Security Annotations and Authorization in GlassFish and the Java EE 5 SDK

But is this is enough ?

Than you!


Annotation and sun-ejb.xml is enough, but using Basic Authentication is not a good way.

0

精彩评论

暂无评论...
验证码 换一张
取 消