public class ArgumentsRealm extends java.lang.Object implements AuthenticationRealm
Constructor and Description |
---|
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.
|
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 ArgumentsRealm(java.util.Set rolesAllowed, java.util.Map args)
public AuthenticationPrincipal authenticateByUsernamePassword(java.lang.String userName, java.lang.String password)
authenticateByUsernamePassword
in interface AuthenticationRealm
public AuthenticationPrincipal retrieveUser(java.lang.String userName)
retrieveUser
in interface AuthenticationRealm
Copyright © 2012. All Rights Reserved.