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 extends CommandLineHandler> initiatorClass;
PropertyEncryptionOperatingMode(
String description, Class extends CommandLineHandler> initiatorClass) {
this.description = description;
this.initiatorClass = initiatorClass;
}
@Override
public Class extends CommandLineHandler> getInitiatorClass() {
return initiatorClass;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy