|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwinstone.realm.ArgumentsRealm
public class ArgumentsRealm
Base class for authentication realms. Subclasses provide the source of authentication roles, usernames, passwords, etc, and when asked for validation respond with a role if valid, or null otherwise.
| Constructor Summary | |
|---|---|
ArgumentsRealm(java.util.Set rolesAllowed,
java.util.Map args)
Constructor - this sets up an authentication realm, using the arguments supplied on the command line as a source of userNames/passwords/roles. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArgumentsRealm(java.util.Set rolesAllowed,
java.util.Map args)
| Method Detail |
|---|
public AuthenticationPrincipal authenticateByUsernamePassword(java.lang.String userName,
java.lang.String password)
authenticateByUsernamePassword in interface AuthenticationRealmpublic AuthenticationPrincipal retrieveUser(java.lang.String userName)
retrieveUser in interface AuthenticationRealm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||