package com.airlock.iam.login.application.configuration.existingsessionbehavior;

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

@Plugin(description = "Terminates a previous user session if no (proper) logout has been performed.", displayName = "Destroy Other User Session")
public final class DestroyOtherUserSessionConfig implements ExistingUserSessionBehaviorConfig {
   static final String DESTROY_OTHER_USER_SESSION_DISPLAY_NAME = "Destroy Other User Session";

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

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

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

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