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

io.github.qsy7.encryption.enumeration.DigestAlgorithm Maven / Gradle / Ivy

The newest version!
package io.github.qsy7.encryption.enumeration;

import io.github.qsy7.property.api.annotation.DefaultValue;
import io.github.qsy7.property.api.property.ConfigurableProperty;

public enum DigestAlgorithm implements ConfigurableProperty {
  MD5,
  SHA_1,
  @DefaultValue
  SHA_256,
  SHA_384,
  SHA_512;

  public String getAlgorithmName() {
    return (name().replace("_", "-"));
  }
  //
  //  @Override
  //  public String getDefaultValue() {
  //    return SHA_256.getName();
  //  }
  //
  //  @Override
  //  public String getDescription() {
  //    return "Digest algorithm";
  //  }
  //
  //  @Override
  //  public String getName() {
  //    return getClass().getName();
  //  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy