Record Class ControlEvidence
java.lang.Object
java.lang.Record
org.j7m.middleware.compliance.api.ControlEvidence
- Record Components:
timestamp- collection timestampruntimeId- runtime id, when runtime-specificenvironment- environment labelcontrolId- control idsourceModule- source module or componentcollectionMethod- collection methodresult- safe result textlimitation- known limitation or gapcorrelationId- correlation idsignatureMetadata- safe hash/signature metadataattributes- additional safe attributes
public record ControlEvidence(Instant timestamp, String runtimeId, String environment, ControlId controlId, String sourceModule, String collectionMethod, String result, String limitation, String correlationId, Map<String,String> signatureMetadata, Map<String,String> attributes)
extends Record
Evidence record collected for a control assessment.
Evidence is a factual observation. It is not a certification claim. The record is immutable and safe to share between threads.
-
Constructor Summary
ConstructorsConstructorDescriptionControlEvidence(Instant timestamp, String runtimeId, String environment, ControlId controlId, String sourceModule, String collectionMethod, String result, String limitation, String correlationId, Map<String, String> signatureMetadata, Map<String, String> attributes) Creates normalized immutable evidence. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.Returns the value of thecollectionMethodrecord component.Returns the value of thecontrolIdrecord component.Returns the value of thecorrelationIdrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelimitationrecord component.result()Returns the value of theresultrecord component.Returns the value of theruntimeIdrecord component.Returns the value of thesignatureMetadatarecord component.Returns the value of thesourceModulerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ControlEvidence
public ControlEvidence(Instant timestamp, String runtimeId, String environment, ControlId controlId, String sourceModule, String collectionMethod, String result, String limitation, String correlationId, Map<String, String> signatureMetadata, Map<String, String> attributes) Creates normalized immutable evidence.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
timestamp
-
runtimeId
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
controlId
-
sourceModule
Returns the value of thesourceModulerecord component.- Returns:
- the value of the
sourceModulerecord component
-
collectionMethod
Returns the value of thecollectionMethodrecord component.- Returns:
- the value of the
collectionMethodrecord component
-
result
-
limitation
Returns the value of thelimitationrecord component.- Returns:
- the value of the
limitationrecord component
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
signatureMetadata
Returns the value of thesignatureMetadatarecord component.- Returns:
- the value of the
signatureMetadatarecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-