package com.airlock.iam.authentication.application.configuration.idpropagation;

import com.airlock.iam.flow.shared.application.configuration.valueprovider.RoleProviderConfig;
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 = "Provides all roles that have been extracted from an SSO ticket.", displayName = "SSO Ticket Roles Provider")
@PluginLicenseRestriction(moduleAffiliation = "SSOTickets")
public final class SsoTicketRolesProviderConfig implements RoleProviderConfig {
   public static final String TICKET_ROLES_PROVIDER = "SSO Ticket Roles Provider";

   @SuppressFBWarnings(justification = "generated code")
   public static SsoTicketRolesProviderConfig.SsoTicketRolesProviderConfigBuilder builder() {
      return new SsoTicketRolesProviderConfig.SsoTicketRolesProviderConfigBuilder();
   }

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

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

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