Record Class EnrollmentTransaction.Decision
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentTransaction.Decision
- Record Components:
principalId- registered administratorevidence- trusted actual end-client credential evidencechoice- approval or terminal rejectionjustification- bounded operator justificationdecidedAt- authoritative decision time
- Enclosing class:
EnrollmentTransaction
public static record EnrollmentTransaction.Decision(String principalId, CertificateIdentityEvidence evidence, ApprovalService.Choice choice, String justification, Instant decidedAt)
extends Record
One verified independent administrative decision.
-
Constructor Summary
ConstructorsConstructorDescriptionDecision(String principalId, CertificateIdentityEvidence evidence, ApprovalService.Choice choice, String justification, Instant decidedAt) Validates bounded immutable decision evidence. -
Method Summary
Modifier and TypeMethodDescriptionchoice()Returns the value of thechoicerecord component.Returns the value of thedecidedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejustificationrecord component.Returns the value of theprincipalIdrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Decision
public Decision(String principalId, CertificateIdentityEvidence evidence, ApprovalService.Choice choice, String justification, Instant decidedAt) Validates bounded immutable decision 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). -
principalId
Returns the value of theprincipalIdrecord component.- Returns:
- the value of the
principalIdrecord component
-
evidence
-
choice
-
justification
Returns the value of thejustificationrecord component.- Returns:
- the value of the
justificationrecord component
-
decidedAt
-