Class Authorizations

java.lang.Object
io.vertx.mutiny.ext.auth.authorization.Authorizations
All Implemented Interfaces:
MutinyDelegate

public class Authorizations extends Object implements 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 Details

  • Constructor Details

    • Authorizations

      public Authorizations(io.vertx.ext.auth.authorization.Authorizations delegate)
      Create a new instance of Authorizations delegating to the given (non-null) instance of Authorizations.
    • Authorizations

      public Authorizations(Object delegate)
  • 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:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • put

      public Authorizations put(String providerId, Set<Authorization> authorizations)
      Replaces the current authorizations with the given authorizations for the given provider.
      Parameters:
      providerId - the provider.
      authorizations - the new map of authorizations. null is equivalent to remove all authorizations for the given provider.
      Returns:
      fluent self.
    • isEmpty

      public boolean isEmpty()
      true if the authorizations contains at least one provider.
    • clear

      public Authorizations clear()
      Clears the authorizations.
    • contains

      public boolean contains(String providerId)
      Logical check if the this object contains the given provider id
      Parameters:
      providerId - the provider to search for.
      Returns:
      true when the provider is present.
    • verify

      public boolean verify(Authorization resolvedAuthorization)
      Verifies that the given authorization is present in the authorizations.
      Parameters:
      resolvedAuthorization - the authorization to verify.
      Returns:
      true if the authorization is present.
    • newInstance

      public static Authorizations newInstance(io.vertx.ext.auth.authorization.Authorizations delegate)
      Creates a new instance of the Authorizations.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object