Package io.vertx.rxjava3.ext.auth.authorization

## Class Authorizations

- java.lang.Object
- - io.vertx.rxjava3.ext.auth.authorization.Authorizations

- All Implemented Interfaces:
    `io.vertx.lang.rx.RxDelegate`

      public class Authorizations
      extends Object
      implements io.vertx.lang.rx.RxDelegate

  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 RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static io.vertx.lang.rx.TypeArg<Authorizations>` | `__TYPE_ARG` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Authorizations​(Authorizations delegate)` |
    `Authorizations​(Object delegate)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Authorizations` | `clear()` | Clears the authorizations.
    `boolean` | `contains​(String providerId)` | Logical check if the this object contains the given provider id
    `boolean` | `equals​(Object o)` |
    `Authorizations` | `getDelegate()` |
    `int` | `hashCode()` |
    `boolean` | `isEmpty()` | `true` if the authorizations contains at least one provider.
    `static Authorizations` | `newInstance​(Authorizations arg)` |
    `Authorizations` | `put​(String providerId, Set<Authorization> authorizations)` | Replaces the current authorizations with the given authorizations for the given provider.
    `String` | `toString()` |
    `boolean` | `verify​(Authorization resolvedAuthorization)` | Verifies that the given authorization is present in the authorizations.

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<Authorizations> __TYPE_ARG

  - ### Constructor Detail

    - #### Authorizations

          public Authorizations​(Authorizations delegate)

    - #### Authorizations

          public Authorizations​(Object delegate)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public Authorizations getDelegate()

      Specified by:
        `getDelegate` in interface `io.vertx.lang.rx.RxDelegate`

    - #### 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.
      Returns:

    - #### clear

          public Authorizations clear()

      Clears the authorizations.
      Returns:

    - #### 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​(Authorizations arg)