public class FileRealm extends java.lang.Object implements AuthenticationRealm
| Constructor and Description |
|---|
FileRealm(java.util.Set rolesAllowed,
java.util.Map args)
Constructor - this sets up an authentication realm, using the file
supplied on the command line as a source of userNames/passwords/roles.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationPrincipal |
authenticateByUsernamePassword(java.lang.String userName,
java.lang.String password)
Authenticate the user - do we know them ? Return a principal once we know
them
|
AuthenticationPrincipal |
retrieveUser(java.lang.String userName)
Retrieve an authenticated user
|
public FileRealm(java.util.Set rolesAllowed,
java.util.Map args)
public AuthenticationPrincipal authenticateByUsernamePassword(java.lang.String userName, java.lang.String password)
authenticateByUsernamePassword in interface AuthenticationRealmpublic AuthenticationPrincipal retrieveUser(java.lang.String userName)
retrieveUser in interface AuthenticationRealmCopyright © 2013. All Rights Reserved.