|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebConsoleSecurityProvider
The WebConsoleSecurityProvider
is a service interface allowing
to use an external system to authenticate users before granting access to the
Web Console.
Method Summary | |
---|---|
java.lang.Object |
authenticate(java.lang.String username,
java.lang.String password)
Authenticates the user with the given user name and password. |
boolean |
authorize(java.lang.Object user,
java.lang.String role)
Checks whether bthe authenticated user has the given role permission. |
Method Detail |
---|
java.lang.Object authenticate(java.lang.String username, java.lang.String password)
username
- The name of the user presented by the clientpassword
- The password presented by the client
null
must be returned from this method.boolean authorize(java.lang.Object user, java.lang.String role)
user
- The object referring to the authenticated user. This is the
object returned from the authenticate(String, String)
method and will never be null
.role
- The requested role
true
if the user is given permission for the given
role.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |