Record Class ApprovalService.Request
java.lang.Object
java.lang.Record
zeroecho.pki.server.ApprovalService.Request
- Record Components:
approvalId- stable record identityoperationId- stable typed operation nameoperationCommitment- exact safe operation commitmentscope- exact realm/authority/issuer/profile scoperequesterPrincipalId- requester identitycreatedAt- creation timeexpiresAt- expiry timepolicy- approval policypolicyCommitment- exact policy commitmentstate- lifecycle statedecisions- immutable attributable decisionsresultClassification- safe linked execution classification
- Enclosing class:
ApprovalService
public static record ApprovalService.Request(String approvalId, String operationId, String operationCommitment, Permission.Scope scope, String requesterPrincipalId, Instant createdAt, Instant expiresAt, ApprovalService.Policy policy, String policyCommitment, ApprovalService.State state, List<ApprovalService.Decision> decisions, Optional<String> resultClassification)
extends Record
Durable approval authority record.
-
Constructor Summary
ConstructorsConstructorDescriptionRequest(String approvalId, String operationId, String operationCommitment, Permission.Scope scope, String requesterPrincipalId, Instant createdAt, Instant expiresAt, ApprovalService.Policy policy, String policyCommitment, ApprovalService.State state, List<ApprovalService.Decision> decisions, Optional<String> resultClassification) Validates and snapshots the durable record. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapprovalIdrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedecisionsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationCommitmentrecord component.Returns the value of theoperationIdrecord component.policy()Returns the value of thepolicyrecord component.Returns the value of thepolicyCommitmentrecord component.Returns the value of therequesterPrincipalIdrecord component.Returns the value of theresultClassificationrecord component.scope()Returns the value of thescoperecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Request
public Request(String approvalId, String operationId, String operationCommitment, Permission.Scope scope, String requesterPrincipalId, Instant createdAt, Instant expiresAt, ApprovalService.Policy policy, String policyCommitment, ApprovalService.State state, List<ApprovalService.Decision> decisions, Optional<String> resultClassification) Validates and snapshots the durable record.
-
-
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). -
approvalId
Returns the value of theapprovalIdrecord component.- Returns:
- the value of the
approvalIdrecord component
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
operationCommitment
Returns the value of theoperationCommitmentrecord component.- Returns:
- the value of the
operationCommitmentrecord component
-
scope
-
requesterPrincipalId
Returns the value of therequesterPrincipalIdrecord component.- Returns:
- the value of the
requesterPrincipalIdrecord component
-
createdAt
-
expiresAt
-
policy
-
policyCommitment
Returns the value of thepolicyCommitmentrecord component.- Returns:
- the value of the
policyCommitmentrecord component
-
state
-
decisions
-
resultClassification
Returns the value of theresultClassificationrecord component.- Returns:
- the value of the
resultClassificationrecord component
-