Enum Class SecurityLevel

java.lang.Object
java.lang.Enum<SecurityLevel>
net.messagevortex.asn1.encryption.SecurityLevel
All Implemented Interfaces:
Serializable, Comparable<SecurityLevel>, Constable

public enum SecurityLevel extends Enum<SecurityLevel>

Enumeration of all possible security levels.

The security level classifies the algorithms strength in regards to the security.

  • Enum Constant Details

  • Method Details

    • values

      public static SecurityLevel[] 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 SecurityLevel 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
    • getDefault

      public static SecurityLevel getDefault()

      Retrieves the default security level to be used.

      Returns:
      the default security level
    • setDefault

      public static SecurityLevel setDefault(SecurityLevel newLevel)

      Sets the default security level to be used.

      Parameters:
      newLevel - the new default security level for all operations to be set
      Returns:
      the previous security level
    • next

      public SecurityLevel next()

      Retrieves the next higher security level.

      Returns:
      the next higher security level
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SecurityLevel>