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- encrypted ZeroEcho keyring file holding the signing key, ornull; not a JDK PKCS12/JKS keystore and not produced bykeytool(use-gen-signing-key). Its.noncesidecar must sit next to it in an owner-only directorykeyringEnv- name of an environment variable holding a keyring secret bundle (produced by-export-keyring-secret), ornull; intended for CI/CD pipelines where the keyring is supplied through a platform secret. When bothkeyringEnvandkeyringFileare set, the environment variable takes precedence. When both arenullthe pack is unsignedpasswordFile- file whose first line is the keyring password, ornullpasswordEnv- name of an environment variable holding the keyring password, ornull; when neither password option is set,METHODATLAS_KEYRING_PASSWORDand then an interactive prompt are triedkeyAlias- 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, Path passwordFile, String passwordEnv, 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, Path passwordFile, String passwordEnv, 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 thepasswordEnvrecord component.Returns the value of thepasswordFilerecord 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, Path passwordFile, String passwordEnv, 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 componentpasswordFile- the value for thepasswordFilerecord componentpasswordEnv- the value for thepasswordEnvrecord componentkeyAlias- the value for thekeyAliasrecord componentsignatureAlgorithm- the value for thesignatureAlgorithmrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
framework
-
outputDir
-
overwrite
-
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
-
passwordFile
Returns the value of thepasswordFilerecord component.- Returns:
- the value of the
passwordFilerecord component
-
passwordEnv
Returns the value of thepasswordEnvrecord component.- Returns:
- the value of the
passwordEnvrecord component
-
keyAlias
-
signatureAlgorithm
Returns the value of thesignatureAlgorithmrecord component.- Returns:
- the value of the
signatureAlgorithmrecord component
-