Package io.vertx.ext.auth.authorization
Interface PermissionBasedAuthorization
-
- All Superinterfaces:
Authorization
public interface PermissionBasedAuthorization extends Authorization
Represents a permission Note that the permission 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 PermissionBasedAuthorization
create(String permission)
String
getPermission()
returns the value of the permissionString
getResource()
returns an optional resource that the permission is assigned-onPermissionBasedAuthorization
setResource(String resource)
sets an optional resource that the permission is assigned-on-
Methods inherited from interface io.vertx.ext.auth.authorization.Authorization
match, match, toJson, verify
-
-
-
-
Method Detail
-
create
static PermissionBasedAuthorization create(String permission)
-
getPermission
String getPermission()
returns the value of the permission- Returns:
-
getResource
String getResource()
returns an optional resource that the permission is assigned-on- Returns:
-
setResource
PermissionBasedAuthorization setResource(String resource)
sets an optional resource that the permission is assigned-on- Returns:
-
-