Class WildcardPermissionBasedAuthorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.WildcardPermissionBasedAuthorization
- All Implemented Interfaces:
MutinyDelegate,Authorization
public class WildcardPermissionBasedAuthorization
extends Object
implements Authorization, MutinyDelegate
Represents a wildcard permission (ie: 'manage:order:*' '*:orders', '*', etc.)
Note that it 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:
-
WildcardPermissionBasedAuthorization
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.auth.authorization.Authorization
Authorization.AuthorizationImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWildcardPermissionBasedAuthorization(io.vertx.ext.auth.authorization.WildcardPermissionBasedAuthorization delegate) Create a new instance ofWildcardPermissionBasedAuthorizationdelegating to the given (non-null) instance ofWildcardPermissionBasedAuthorization.WildcardPermissionBasedAuthorization(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.vertx.ext.auth.authorization.WildcardPermissionBasedAuthorizationGet the delegate instance.return the value of the wildcard 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.newInstance(io.vertx.ext.auth.authorization.WildcardPermissionBasedAuthorization delegate) Creates a new instance of theWildcardPermissionBasedAuthorization.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
-
WildcardPermissionBasedAuthorization
public WildcardPermissionBasedAuthorization(io.vertx.ext.auth.authorization.WildcardPermissionBasedAuthorization delegate) Create a new instance ofWildcardPermissionBasedAuthorizationdelegating to the given (non-null) instance ofWildcardPermissionBasedAuthorization. -
WildcardPermissionBasedAuthorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authorization.WildcardPermissionBasedAuthorization 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
return the value of the wildcard 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:
-
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.
-
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.
-
toJson
public io.vertx.core.json.JsonObject toJson()- Specified by:
toJsonin interfaceAuthorization
-
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.
-
newInstance
public static WildcardPermissionBasedAuthorization newInstance(io.vertx.ext.auth.authorization.WildcardPermissionBasedAuthorization delegate) Creates a new instance of theWildcardPermissionBasedAuthorization. -
hashCode
public int hashCode() -
equals
-
toString
-