Package io.vertx.ext.auth.authorization
Interface RoleBasedAuthorization
-
- All Superinterfaces:
Authorization
public interface RoleBasedAuthorization extends Authorization
Represents a role. Note that this role can optionally be assigned to a specific resource- Author:
- Stephane Bastian
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RoleBasedAuthorization
create(String role)
String
getResource()
returns an optional resource that the role is assigned-onString
getRole()
returns the roleRoleBasedAuthorization
setResource(String resource)
sets an optional resource that the role is assigned-on-
Methods inherited from interface io.vertx.ext.auth.authorization.Authorization
match, match, toJson, verify
-
-
-
-
Method Detail
-
create
static RoleBasedAuthorization create(String role)
-
getRole
String getRole()
returns the role- Returns:
-
getResource
String getResource()
returns an optional resource that the role is assigned-on- Returns:
-
setResource
RoleBasedAuthorization setResource(String resource)
sets an optional resource that the role is assigned-on- Returns:
-
-