Class Authorization

java.lang.Object
io.vertx.mutiny.ext.auth.authorization.Authorization
All Implemented Interfaces:
MutinyDelegate
Direct Known Subclasses:
AndAuthorization, NotAuthorization, OrAuthorization, PermissionBasedAuthorization, RoleBasedAuthorization, WildcardPermissionBasedAuthorization

public class Authorization extends Object implements MutinyDelegate
Interface representing any kind of authorization such as:
  • Role based authorization
  • Permission based authorization
  • Logical authorization (AND, OR, NOT)
  • Time based authorization (ie: allow access the last 5 days of the month, from 8am till 10am, etc.)
  • Context based authorization (ie: allow access if the ip address is 'xxx.xxx.xxx.xxx')
  • Custom based authorization (ie: based on a script or hard-coded code specific to an application)
  • etc.
The following implementations are provided out of the box:

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • Authorization

      public Authorization(io.vertx.ext.auth.authorization.Authorization delegate)
    • Authorization

      public Authorization(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.authorization.Authorization getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • 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
    • match

      public boolean match(AuthorizationContext context)
      Parameters:
      context - the context.
      Returns:
      true if there's a match.
    • verify

      public boolean verify(Authorization authorization)
      Parameters:
      authorization - the authorization.
      Returns:
      true if implies the argument.
    • match

      public boolean match(User user)
      Parameters:
      user - the user.
      Returns:
      true if there's a match
    • newInstance

      public static Authorization newInstance(io.vertx.ext.auth.authorization.Authorization arg)