java.lang.Object
com.worldline.acquiring.sdk.java.authentication.OAuth2Scopes

public final class OAuth2Scopes extends Object
  • Method Details

    • all

      public static Set<String> all()
      Returns all available scopes.
    • forApiVersion

      public static Set<String> forApiVersion(String apiVersion)
      Returns all scopes needed for all operations of the given API version.
    • forOperation

      public static Set<String> forOperation(String apiVersion, String operationId)
      Returns all scopes needed for the given operation of the given API version.
    • forOperations

      public static Set<String> forOperations(String apiVersion, String... operationIds)
      Returns all scopes needed for the given operations of the given API version.
    • forOperations

      public static Set<String> forOperations(BiPredicate<? super String,? super String> predicate)
      Returns all scopes needed for the operations that pass the given predicate. The first argument to the predicate is the API version, the second is the operation id.