Package org.apache.axis.security.simple
Class SimpleSecurityProvider
java.lang.Object
org.apache.axis.security.simple.SimpleSecurityProvider
- All Implemented Interfaces:
SecurityProvider
SimpleSecurityProvider
- Author:
- Glen Daniels (gdaniels@apache.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(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 org.apache.commons.logging.Log log
-
-
Constructor Details
-
SimpleSecurityProvider
public SimpleSecurityProvider()
-
-
Method Details
-
authenticate
Authenticate a user from a username/password pair.- Specified by:
authenticate
in interfaceSecurityProvider
- Parameters:
username
- the user name to checkpassword
- the password to check- Returns:
- an AuthenticatedUser or null
-
userMatches
See if a user matches a principal name. The name might be a user or a group.- Specified by:
userMatches
in interfaceSecurityProvider
- Returns:
- true if the user matches the passed name
-