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