Package io.vertx.ext.auth.authorization
Interface WildcardPermissionBasedAuthorization
-
- All Superinterfaces:
Authorization
public interface WildcardPermissionBasedAuthorization extends Authorization
Represents a wildcard permission (ie: 'manage:order:*' '*:orders', '*', etc.) Note that it 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 WildcardPermissionBasedAuthorization
create(String permission)
String
getPermission()
return the value of the wildcard permissionString
getResource()
returns an optional resource that the permission is assigned-onWildcardPermissionBasedAuthorization
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 WildcardPermissionBasedAuthorization create(String permission)
-
getPermission
String getPermission()
return the value of the wildcard permission- Returns:
-
getResource
String getResource()
returns an optional resource that the permission is assigned-on- Returns:
-
setResource
WildcardPermissionBasedAuthorization setResource(String resource)
sets an optional resource that the permission is assigned-on- Returns:
-
-