Class RoleBasedAuthorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.RoleBasedAuthorization
- All Implemented Interfaces:
MutinyDelegate,Authorization
Represents a role. Note that this role 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:
-
RoleBasedAuthorization
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.auth.authorization.Authorization
Authorization.AuthorizationImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoleBasedAuthorization(io.vertx.ext.auth.authorization.RoleBasedAuthorization delegate) Create a new instance ofRoleBasedAuthorizationdelegating to the given (non-null) instance ofRoleBasedAuthorization.RoleBasedAuthorization(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic RoleBasedAuthorizationbooleanio.vertx.ext.auth.authorization.RoleBasedAuthorizationGet the delegate instance.returns an optional resource that the role is assigned-ongetRole()returns the roleinthashCode()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 RoleBasedAuthorizationnewInstance(io.vertx.ext.auth.authorization.RoleBasedAuthorization delegate) Creates a new instance of theRoleBasedAuthorization.setResource(String resource) sets an optional resource that the role 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
-
RoleBasedAuthorization
public RoleBasedAuthorization(io.vertx.ext.auth.authorization.RoleBasedAuthorization delegate) Create a new instance ofRoleBasedAuthorizationdelegating to the given (non-null) instance ofRoleBasedAuthorization. -
RoleBasedAuthorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authorization.RoleBasedAuthorization 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
-
getRole
returns the role- Returns:
-
getResource
returns an optional resource that the role is assigned-on- Returns:
-
setResource
sets an optional resource that the role is assigned-on- Returns:
-
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.
-
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.
-
newInstance
public static RoleBasedAuthorization newInstance(io.vertx.ext.auth.authorization.RoleBasedAuthorization delegate) Creates a new instance of theRoleBasedAuthorization. -
hashCode
public int hashCode() -
equals
-
toString
-