package com.airlock.iam.oauth2.application.configuration;

import com.airlock.iam.plugin.api.annotation.config.Plugin;
import com.airlock.iam.plugin.api.annotation.license.PluginLicenseRestriction;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

@Plugin(
   description = "<p>Filters the requested OAuth 2.0 scopes to those matching a role or a flow tag of the user.</p><p>If interactive consent is enabled, only matching scopes are presented to the user. Without interactive consent, matching scopes are granted automatically.</p>",
   displayName = "OAuth 2.0 Default Scopes Flow Settings"
)
@PluginLicenseRestriction(moduleAffiliation = "OAuthServer")
public class OAuth2DefaultScopesSettingsConfig implements OAuth2ScopesSettingsConfig {
   @SuppressFBWarnings(justification = "generated code")
   public static OAuth2DefaultScopesSettingsConfig.OAuth2DefaultScopesSettingsConfigBuilder builder() {
      return new OAuth2DefaultScopesSettingsConfig.OAuth2DefaultScopesSettingsConfigBuilder();
   }

   @SuppressFBWarnings(justification = "generated code")
   public static class OAuth2DefaultScopesSettingsConfigBuilder {
      @SuppressFBWarnings(justification = "generated code")
      OAuth2DefaultScopesSettingsConfigBuilder() {
      }

      @SuppressFBWarnings(justification = "generated code")
      public OAuth2DefaultScopesSettingsConfig build() {
         return new OAuth2DefaultScopesSettingsConfig();
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "OAuth2DefaultScopesSettingsConfig.OAuth2DefaultScopesSettingsConfigBuilder()";
      }
   }
}
