Record Class ApprovalService.Policy
java.lang.Object
java.lang.Record
zeroecho.pki.server.ApprovalService.Policy
- Record Components:
policyId- stable policy identitythreshold- required distinct approvalseligibleApprovers- finite M-set, empty only when a required role defines eligibilityrequiredRoleTemplateIds- eligible approver role-template IDsrequesterSeparation- whether the requester is barred from approvinglifetime- positive approval lifetimejustificationRequired- whether a nonblank justification is mandatory
- Enclosing class:
ApprovalService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a stable commitment for this policy.Returns the value of theeligibleApproversrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thejustificationRequiredrecord component.lifetime()Returns the value of thelifetimerecord component.policyId()Returns the value of thepolicyIdrecord component.booleanReturns the value of therequesterSeparationrecord component.Returns the value of therequiredRoleTemplateIdsrecord component.intReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Policy
-
-
Method Details
-
commitment
Returns a stable commitment for this policy.- Returns:
- lowercase SHA-256 commitment to the complete policy
-
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. -
policyId
-
threshold
-
eligibleApprovers
Returns the value of theeligibleApproversrecord component.- Returns:
- the value of the
eligibleApproversrecord component
-
requiredRoleTemplateIds
Returns the value of therequiredRoleTemplateIdsrecord component.- Returns:
- the value of the
requiredRoleTemplateIdsrecord component
-
requesterSeparation
public boolean requesterSeparation()Returns the value of therequesterSeparationrecord component.- Returns:
- the value of the
requesterSeparationrecord component
-
lifetime
-
justificationRequired
public boolean justificationRequired()Returns the value of thejustificationRequiredrecord component.- Returns:
- the value of the
justificationRequiredrecord component
-