Interface Authorizer<P extends Principal>

    • Method Detail

      • authorize

        default boolean authorize​(P principal,
                                  String role,
                                  @Nullable
                                  javax.ws.rs.container.ContainerRequestContext requestContext)
        Decides if access is granted for the given principal in the given role.
        Parameters:
        principal - a Principal object, representing a user
        role - a user role
        requestContext - a request context.
        Returns:
        true, if the access is granted, false otherwise
        Since:
        2.0