Class Authorizations
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.Authorizations
- All Implemented Interfaces:
MutinyDelegate
Represents a cache map of authorizations per provider.
Authorizations are immutable and can be shared between users.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Stephane Bastian
- See Also:
-
Authorizations
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizations(io.vertx.ext.auth.authorization.Authorizations delegate) Create a new instance ofAuthorizationsdelegating to the given (non-null) instance ofAuthorizations.Authorizations(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionclear()Clears the authorizations.booleanLogical check if the this object contains the given provider idbooleanio.vertx.ext.auth.authorization.AuthorizationsGet the delegate instance.inthashCode()booleanisEmpty()trueif the authorizations contains at least one provider.static AuthorizationsnewInstance(io.vertx.ext.auth.authorization.Authorizations delegate) Creates a new instance of theAuthorizations.put(String providerId, Set<Authorization> authorizations) Replaces the current authorizations with the given authorizations for the given provider.toString()booleanverify(Authorization resolvedAuthorization) Verifies that the given authorization is present in the authorizations.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Authorizations
public Authorizations(io.vertx.ext.auth.authorization.Authorizations delegate) Create a new instance ofAuthorizationsdelegating to the given (non-null) instance ofAuthorizations. -
Authorizations
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authorization.Authorizations 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 interfaceMutinyDelegate- Returns:
- the delegate instance
-
put
Replaces the current authorizations with the given authorizations for the given provider.- Parameters:
providerId- the provider.authorizations- the new map of authorizations.nullis equivalent to remove all authorizations for the given provider.- Returns:
- fluent self.
-
isEmpty
public boolean isEmpty()trueif the authorizations contains at least one provider. -
clear
Clears the authorizations. -
contains
Logical check if the this object contains the given provider id- Parameters:
providerId- the provider to search for.- Returns:
truewhen the provider is present.
-
verify
Verifies that the given authorization is present in the authorizations.- Parameters:
resolvedAuthorization- the authorization to verify.- Returns:
trueif the authorization is present.
-
newInstance
Creates a new instance of theAuthorizations. -
hashCode
public int hashCode() -
equals
-
toString
-