All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.qsy7.property.modules.cli.enumeration.PropertyEncryptionOperatingMode Maven / Gradle / Ivy

The newest version!
package io.github.qsy7.property.modules.cli.enumeration;

import io.github.qsy7.inject.cli.property.OperatingMode;
import io.github.qsy7.inject.cli.service.CommandLineHandler;
import io.github.qsy7.property.api.annotation.DefaultValue;
import io.github.qsy7.property.modules.cli.handler.GetSecretPropertyHandler;
import io.github.qsy7.property.modules.cli.handler.PutSecretPropertyHandler;

public enum PropertyEncryptionOperatingMode implements OperatingMode {
  @DefaultValue
  Encrypt("Encrypt input text", PutSecretPropertyHandler.class),
  Decrypt("Send a message(s)", GetSecretPropertyHandler.class);

  private final String description;
  private final Class initiatorClass;

  PropertyEncryptionOperatingMode(
      String description, Class initiatorClass) {
    this.description = description;
    this.initiatorClass = initiatorClass;
  }

  @Override
  public Class getInitiatorClass() {
    return initiatorClass;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy