Class AndAuthorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.AndAuthorization
- All Implemented Interfaces:
MutinyDelegate,Authorization
Allows to perform a logical 'and' between several authorizations
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Stephane Bastian
- See Also:
-
AndAuthorization
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.auth.authorization.Authorization
Authorization.AuthorizationImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAndAuthorization(io.vertx.ext.auth.authorization.AndAuthorization delegate) Create a new instance ofAndAuthorizationdelegating to the given (non-null) instance ofAndAuthorization.AndAuthorization(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionaddAuthorization(Authorization authorization) static AndAuthorizationcreate()booleanio.vertx.ext.auth.authorization.AndAuthorizationGet 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 AndAuthorizationnewInstance(io.vertx.ext.auth.authorization.AndAuthorization delegate) Creates a new instance of theAndAuthorization.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
-
AndAuthorization
public AndAuthorization(io.vertx.ext.auth.authorization.AndAuthorization delegate) Create a new instance ofAndAuthorizationdelegating to the given (non-null) instance ofAndAuthorization. -
AndAuthorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authorization.AndAuthorization 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
-
getAuthorizations
-
addAuthorization
-
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
-
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 AndAuthorization newInstance(io.vertx.ext.auth.authorization.AndAuthorization delegate) Creates a new instance of theAndAuthorization. -
hashCode
public int hashCode() -
equals
-
toString
-