Enum Class SVTExtendpolicy

java.lang.Object
java.lang.Enum<SVTExtendpolicy>
se.swedenconnect.sigval.commons.svt.SVTExtendpolicy
All Implemented Interfaces:
Serializable, Comparable<SVTExtendpolicy>, Constable

public enum SVTExtendpolicy extends Enum<SVTExtendpolicy>
Enumeration class specifying identifiers for different SVT extension strategies
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Enum Constant Details

    • REPLACE

      public static final SVTExtendpolicy REPLACE
      Replace any previous SVT in the signature where a new SVT was successfully created
    • EXTEND

      public static final SVTExtendpolicy EXTEND
      Append a new SVT to any existing SVT tokens
  • Method Details

    • values

      public static SVTExtendpolicy[] 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 SVTExtendpolicy 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