|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The class name of the implementation of this interface is configured in the gateway configuration's security section and is instantiated using reflection on servlet initialization.
| Method Summary | |
Principal |
doAuthentication(String username,
Object credentials)
The gateway calls this method to perform programmatic, custom authentication. |
boolean |
doAuthorization(Principal principal,
List roles)
The gateway calls this method to perform programmatic authorization. |
boolean |
logout(Principal principal)
Attempts to log a user out from their session. |
void |
start(javax.servlet.ServletConfig config)
Called to initialize a login command prior to authentication/authorization requests. |
void |
stop()
Called to free up resources used by the login command. |
| Method Detail |
public void start(javax.servlet.ServletConfig config)
public void stop()
public Principal doAuthentication(String username,
Object credentials)
username - The principal being authenticatedcredentials - A map, typically with string keys and values - holds, for example, a password
public boolean doAuthorization(Principal principal,
List roles)
principal - The principal being checked for authorizationroles - A List of role names to check, all members should be stringspublic boolean logout(Principal principal)
principal - The principal to logout.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||