Enum Class PaddingAlgorithm

java.lang.Object
java.lang.Enum<PaddingAlgorithm>
net.randombit.botan.util.PaddingAlgorithm
All Implemented Interfaces:
Serializable, Comparable<PaddingAlgorithm>, Constable

public enum PaddingAlgorithm extends Enum<PaddingAlgorithm>
  • Enum Constant Details

    • NO_PADDING

      public static final PaddingAlgorithm NO_PADDING
      No padding.
    • PKCS5_PADDING

      public static final PaddingAlgorithm PKCS5_PADDING
      PKCS#5 padding.
    • PKCS7_PADDING

      public static final PaddingAlgorithm PKCS7_PADDING
      PKCS#7 padding.
    • One_And_Zeros

      public static final PaddingAlgorithm One_And_Zeros
      ISO 7816-4 padding.
    • X923_PADDING

      public static final PaddingAlgorithm X923_PADDING
      ANSI X9.23 padding.
    • ESP_PADDING

      public static final PaddingAlgorithm ESP_PADDING
      IP Encapsulating Security Payload (ESP) padding.
  • Method Details

    • values

      public static PaddingAlgorithm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PaddingAlgorithm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromName

      public static PaddingAlgorithm fromName(String name) throws NoSuchPaddingException
      Throws:
      NoSuchPaddingException
    • getName

      public String getName()