org.apache.axis.security.simple

Class SimpleSecurityProvider

Implemented Interfaces:
SecurityProvider

public class SimpleSecurityProvider
extends java.lang.Object
implements SecurityProvider

SimpleSecurityProvider
Author:
Glen Daniels (gdaniels@apache.org)

Field Summary

protected static Log
log

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.

Field Details

log

protected static Log log

Method Details

authenticate

public AuthenticatedUser authenticate(MessageContext msgContext)
Authenticate a user from a username/password pair.
Specified by:
authenticate in interface SecurityProvider
Parameters:
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 © 2005 Apache Web Services Project. All Rights Reserved.