All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.ext.web.handler.impl.ScopedAuthentication Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
package io.vertx.ext.web.handler.impl;

import io.vertx.ext.web.handler.AuthenticationHandler;

import java.util.List;

/**
 * Internal interface for scope aware Authentication handlers.
 * @author Paulo Lopes
 * @param 
 */
public interface ScopedAuthentication {

  /**
   * Return a new instance with the internal state copied from the caller but the scopes to be requested during a token
   * request are unique to the instance.
   *
   * @param scope scope.
   * @return new instance of this interface.
   */
  SELF withScope(String scope);

  /**
   * Return a new instance with the internal state copied from the caller but the scopes to be requested during a token
   * request are unique to the instance.
   *
   * @param scopes scopes.
   * @return new instance of this interface.
   */
  SELF withScopes(List scopes);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy