Enum OpenSslJnaCipher.AlgorithmMode

java.lang.Object
java.lang.Enum<OpenSslJnaCipher.AlgorithmMode>
org.apache.commons.crypto.jna.OpenSslJnaCipher.AlgorithmMode
All Implemented Interfaces:
Serializable, Comparable<OpenSslJnaCipher.AlgorithmMode>
Enclosing class:
OpenSslJnaCipher

private static enum OpenSslJnaCipher.AlgorithmMode extends Enum<OpenSslJnaCipher.AlgorithmMode>
AlgorithmMode of JNA. Currently only support AES/CTR/NoPadding.
  • Enum Constant Details

  • Constructor Details

    • AlgorithmMode

      private AlgorithmMode()
  • Method Details

    • values

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

      public static OpenSslJnaCipher.AlgorithmMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      Gets the AlgorithmMode instance.
      Parameters:
      algorithm - the algorithm name
      mode - the mode name
      Returns:
      the AlgorithmMode instance
      Throws:
      NoSuchAlgorithmException - if the algorithm is not support