Package org.egothor.methodatlas.evidence
Record Class EvidencePackOptions
java.lang.Object
java.lang.Record
org.egothor.methodatlas.evidence.EvidencePackOptions
- Record Components:
framework- target compliance framework; must not benulloutputDir- directory in which to materialise the pack; whennullthe command will derive a default location relative to the first scan rootoverwrite- whentrue, an existing output directory is reused; whenfalse, a pre-existing directory is treated as an errorkeyringFile- ZeroEcho keyring file holding the signing key, ornull; this is a plaintext ZeroEchoKeyringStorefile, not a JDK PKCS12/JKS keystore and not produced bykeytool(use-gen-signing-key). Intended for interactive CLI use where the file is protected by file-system permissions or ACLskeyringEnv- name of an environment variable holding the full keyring content, ornull; intended for CI/CD pipelines where the keyring is supplied through a platform secret so the private key never touches the runner's disk. When bothkeyringEnvandkeyringFileare set, the environment variable takes precedence. When both arenullthe pack is unsignedkeyAlias- keyring alias of the signing key; whennullthe first alias in the keyring is used; for hybrid signatures the format is"classicAlias/pqcAlias"signatureAlgorithm- signature algorithm identifier;nullmeans derive it from the keyring entry (defaulting to"Ed25519"when generated by MethodAtlas); a value of the form"classic+pqc"(for example"Ed25519+SPHINCS+") selects hybrid signing
public record EvidencePackOptions(EvidenceFramework framework, Path outputDir, boolean overwrite, Path keyringFile, String keyringEnv, String keyAlias, String signatureAlgorithm)
extends Record
Immutable bag of evidence-pack options collected from the command line.
This record is constructed directly by CliArgs; there is no
builder. Fields with sensible defaults are documented in the parameter
Javadoc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEvidencePackOptions(EvidenceFramework framework, Path outputDir, boolean overwrite, Path keyringFile, String keyringEnv, String keyAlias, String signatureAlgorithm) Creates an instance of aEvidencePackOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theframeworkrecord component.final inthashCode()Returns a hash code value for this object.keyAlias()Returns the value of thekeyAliasrecord component.Returns the value of thekeyringEnvrecord component.Returns the value of thekeyringFilerecord component.Returns the value of theoutputDirrecord component.booleanReturns the value of theoverwriterecord component.Returns the value of thesignatureAlgorithmrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvidencePackOptions
public EvidencePackOptions(EvidenceFramework framework, Path outputDir, boolean overwrite, Path keyringFile, String keyringEnv, String keyAlias, String signatureAlgorithm) Creates an instance of aEvidencePackOptionsrecord class.- Parameters:
framework- the value for theframeworkrecord componentoutputDir- the value for theoutputDirrecord componentoverwrite- the value for theoverwriterecord componentkeyringFile- the value for thekeyringFilerecord componentkeyringEnv- the value for thekeyringEnvrecord componentkeyAlias- the value for thekeyAliasrecord componentsignatureAlgorithm- the value for thesignatureAlgorithmrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
framework
Returns the value of theframeworkrecord component.- Returns:
- the value of the
frameworkrecord component
-
outputDir
Returns the value of theoutputDirrecord component.- Returns:
- the value of the
outputDirrecord component
-
overwrite
public boolean overwrite()Returns the value of theoverwriterecord component.- Returns:
- the value of the
overwriterecord component
-
keyringFile
Returns the value of thekeyringFilerecord component.- Returns:
- the value of the
keyringFilerecord component
-
keyringEnv
Returns the value of thekeyringEnvrecord component.- Returns:
- the value of the
keyringEnvrecord component
-
keyAlias
Returns the value of thekeyAliasrecord component.- Returns:
- the value of the
keyAliasrecord component
-
signatureAlgorithm
Returns the value of thesignatureAlgorithmrecord component.- Returns:
- the value of the
signatureAlgorithmrecord component
-