package com.airlock.iam.common.application.configuration.state;

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

@Plugin(
   description = "Plugin to disable state encryption and store state information in plaintext. <p><b>CAUTION</b>: As IAM state contains sensitive information, storing unencrypted state is <em>not recommended in production setups!</em></p>",
   displayName = "No State Encryption"
)
public class NoStateEncryptionConfig implements StateEncryptionConfig {
   @SuppressFBWarnings(justification = "generated code")
   public static NoStateEncryptionConfig.NoStateEncryptionConfigBuilder builder() {
      return new NoStateEncryptionConfig.NoStateEncryptionConfigBuilder();
   }

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

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

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