org.apache.axis.security.simple

Class SimpleSecurityProvider

public class SimpleSecurityProvider extends Object implements SecurityProvider

SimpleSecurityProvider

Author: Glen Daniels (gdaniels@apache.org)

Field Summary
protected static Loglog
Method Summary
AuthenticatedUserauthenticate(MessageContext msgContext)
Authenticate a user from a username/password pair.
booleanuserMatches(AuthenticatedUser user, String principal)
See if a user matches a principal name.

Field Detail

log

protected static Log log

Method Detail

authenticate

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

Parameters: username the user name to check password the password to check

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.

Returns: true if the user matches the passed name

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.