Enum Class EvidenceFramework

java.lang.Object
java.lang.Enum<EvidenceFramework>
org.egothor.methodatlas.evidence.EvidenceFramework
All Implemented Interfaces:
Serializable, Comparable<EvidenceFramework>, Constable

public enum EvidenceFramework extends Enum<EvidenceFramework>
Compliance frameworks that the -evidence-pack CLI mode can target.

Each enum constant carries the canonical token used in pack metadata and in the default output directory name. Tokens are kept stable because external audit tooling treats them as identifiers, not labels.

The parse(String) factory accepts case-insensitive input but always emits the canonical form in metadata files.

See Also:
  • Enum Constant Details

    • ASVS

      public static final EvidenceFramework ASVS
      OWASP Application Security Verification Standard.
    • PCI_6_4_1

      public static final EvidenceFramework PCI_6_4_1
      PCI DSS requirement 6.4.1 (software security requirements).
    • NIST_SSDF_PW8

      public static final EvidenceFramework NIST_SSDF_PW8
      NIST Secure Software Development Framework, practice PW.8.
    • ISO_27001_8_29

      public static final EvidenceFramework ISO_27001_8_29
      ISO/IEC 27001:2022 control 8.29 (secure development lifecycle).
  • Method Details

    • values

      public static EvidenceFramework[] 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 EvidenceFramework 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
    • canonicalToken

      public String canonicalToken()
      Returns the canonical, case-sensitive token used to identify this framework in pack metadata and on disk.
      Returns:
      canonical token; never null
    • parse

      public static EvidenceFramework parse(String token)
      Parses a framework token supplied on the command line.

      Matching is case-insensitive. The accepted tokens are exactly the canonicalToken() values of the enum constants.

      Parameters:
      token - raw token supplied by the user; must not be null
      Returns:
      the matching enum constant; never null
      Throws:
      IllegalArgumentException - if token does not match any known framework; the exception message lists every valid token