Class PermissionBasedAuthorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.PermissionBasedAuthorization
- All Implemented Interfaces:
MutinyDelegate,Authorization
Represents a permission Note that the permission can optionally be assigned
to a specific resource
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Stephane Bastian
- See Also:
-
PermissionBasedAuthorization
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.auth.authorization.Authorization
Authorization.AuthorizationImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPermissionBasedAuthorization(io.vertx.ext.auth.authorization.PermissionBasedAuthorization delegate) Create a new instance ofPermissionBasedAuthorizationdelegating to the given (non-null) instance ofPermissionBasedAuthorization.PermissionBasedAuthorization(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionBasedAuthorizationbooleanio.vertx.ext.auth.authorization.PermissionBasedAuthorizationGet the delegate instance.returns the value of the permissionreturns an optional resource that the permission is assigned-oninthashCode()booleanmatch(AuthorizationContext arg0) this methods verifies whether or not the authorization match the specified context.booleanthis methods verifies whether or not the authorization match the specified context.static PermissionBasedAuthorizationnewInstance(io.vertx.ext.auth.authorization.PermissionBasedAuthorization delegate) Creates a new instance of thePermissionBasedAuthorization.setResource(String resource) sets an optional resource that the permission is assigned-onio.vertx.core.json.JsonObjecttoJson()toString()booleanverify(Authorization arg0) this method verifies whether or not the authorization implies the specified authorization.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
PermissionBasedAuthorization
public PermissionBasedAuthorization(io.vertx.ext.auth.authorization.PermissionBasedAuthorization delegate) Create a new instance ofPermissionBasedAuthorizationdelegating to the given (non-null) instance ofPermissionBasedAuthorization. -
PermissionBasedAuthorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authorization.PermissionBasedAuthorization getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceAuthorization- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
-
getPermission
returns the value of the permission- Returns:
-
getResource
returns an optional resource that the permission is assigned-on- Returns:
-
setResource
sets an optional resource that the permission is assigned-on- Returns:
-
match
this methods verifies whether or not the authorization match the specified context.- Specified by:
matchin interfaceAuthorization- Parameters:
context- the context.- Returns:
- true if there's a match.
-
match
this methods verifies whether or not the authorization match the specified context.- Specified by:
matchin interfaceAuthorization- Parameters:
context- the context.- Returns:
- true if there's a match.
-
verify
this method verifies whether or not the authorization implies the specified authorization. Note that it doesn't always mean an exact match. For instance, in the case of aWildcardPermissionBasedAuthorization, this method may return true even if the permissions are different WildcardPermissionBasedAuthorization.create('*').verify(WildcardPermissionBasedAuthorization.create('anypermission')) would return true- Specified by:
verifyin interfaceAuthorization- Parameters:
authorization- the authorization.- Returns:
- true if implies the argument.
-
toJson
public io.vertx.core.json.JsonObject toJson()- Specified by:
toJsonin interfaceAuthorization
-
newInstance
public static PermissionBasedAuthorization newInstance(io.vertx.ext.auth.authorization.PermissionBasedAuthorization delegate) Creates a new instance of thePermissionBasedAuthorization. -
hashCode
public int hashCode() -
equals
-
toString
-