public interface WebConsoleSecurityProvider
WebConsoleSecurityProvider is a service interface allowing
to use an external system to authenticate users before granting access to the
Web Console.| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(String username,
String password)
Authenticates the user with the given user name and password.
|
boolean |
authorize(Object user,
String role)
Checks whether the authenticated user has the given role permission.
|
Object authenticate(String username, String password)
username - The name of the user presented by the clientpassword - The password presented by the clientnull must be returned from this method.boolean authorize(Object user, 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 roletrue if the user is given permission for the given
role.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.