站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jaxrpc API Documentation 英文版文档

ServletSecurityProvider (JAXRPC API) - JBoss 3.2.7 jaxrpc API Documentation 英文版文档


org.apache.axis.security.servlet
Class ServletSecurityProvider

java.lang.Object
  extended byorg.apache.axis.security.servlet.ServletSecurityProvider
All Implemented Interfaces:
SecurityProvider

public class ServletSecurityProvider
extends Object
implements SecurityProvider

A ServletSecurityProvider, combined with the ServletAuthenticatedUser class, allows the standard servlet security mechanisms (isUserInRole(), etc.) to integrate with Axis' access control mechanism.

By utilizing this class (which the AxisServlet can be configured to do automatically), authentication and role information will come from your servlet engine.

Author:
Glen Daniels (gdaniels@macromedia.com)

Constructor Summary
ServletSecurityProvider()
           
 
Method Summary
 AuthenticatedUser authenticate(MessageContext msgContext)
          Authenticate a user from a username/password pair.
 boolean userMatches(AuthenticatedUser user, String principal)
          See if a user matches a principal name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletSecurityProvider

public ServletSecurityProvider()
Method Detail

authenticate

public AuthenticatedUser authenticate(MessageContext msgContext)
Authenticate a user from a username/password pair.

Specified by:
authenticate in interface SecurityProvider
Parameters:
msgContext - the MessageContext containing authentication info
Returns:
an AuthenticatedUser or null

userMatches

public boolean userMatches(AuthenticatedUser user,
                           String principal)
See if a user matches a principal name. The name might be a user or a group.

Specified by:
userMatches in interface SecurityProvider
Returns:
true if the user matches the passed name


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.