Class NotAuthorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.NotAuthorization
- All Implemented Interfaces:
MutinyDelegate,Authorization
Allows to perform a logical 'not' of the specified authorization
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Stephane Bastian
- See Also:
-
NotAuthorization
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.auth.authorization.Authorization
Authorization.AuthorizationImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNotAuthorization(io.vertx.ext.auth.authorization.NotAuthorization delegate) Create a new instance ofNotAuthorizationdelegating to the given (non-null) instance ofNotAuthorization.NotAuthorization(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic NotAuthorizationcreate(Authorization authorization) booleanio.vertx.ext.auth.authorization.NotAuthorizationGet the delegate instance.inthashCode()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 NotAuthorizationnewInstance(io.vertx.ext.auth.authorization.NotAuthorization delegate) Creates a new instance of theNotAuthorization.io.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
-
NotAuthorization
public NotAuthorization(io.vertx.ext.auth.authorization.NotAuthorization delegate) Create a new instance ofNotAuthorizationdelegating to the given (non-null) instance ofNotAuthorization. -
NotAuthorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authorization.NotAuthorization 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
-
getAuthorization
-
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.
-
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.
-
newInstance
public static NotAuthorization newInstance(io.vertx.ext.auth.authorization.NotAuthorization delegate) Creates a new instance of theNotAuthorization. -
hashCode
public int hashCode() -
equals
-
toString
-