Record Class DisclosureService.Record
java.lang.Object
java.lang.Record
zeroecho.pki.server.DisclosureService.Record
- Record Components:
objectId- exact protected object identifierobjectType- protected object classificationpolicy- effective disclosure policyownerPrincipalId- optional administrative ownerownerAcmeAccountId- optional protocol-scoped ACME ownerpolicyCommitment- governing profile or policy commitmentupdatedAt- server-authoritative last-update time
- Enclosing class:
DisclosureService
public static record DisclosureService.Record(PkiId objectId, DisclosureService.ObjectType objectType, DisclosureService.Policy policy, Optional<String> ownerPrincipalId, Optional<String> ownerAcmeAccountId, String policyCommitment, Instant updatedAt)
extends Record
Durable policy bound to exact object and profile/policy commitment.
-
Constructor Summary
ConstructorsConstructorDescriptionRecord(PkiId objectId, DisclosureService.ObjectType objectType, DisclosureService.Policy policy, Optional<String> ownerPrincipalId, String policyCommitment, Instant updatedAt) Creates a record with optional administrative-principal ownership.Record(PkiId objectId, DisclosureService.ObjectType objectType, DisclosureService.Policy policy, Optional<String> ownerPrincipalId, Optional<String> ownerAcmeAccountId, String policyCommitment, Instant updatedAt) Validates the durable disclosure record. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.objectId()Returns the value of theobjectIdrecord component.Returns the value of theobjectTyperecord component.Returns the value of theownerAcmeAccountIdrecord component.Returns the value of theownerPrincipalIdrecord component.policy()Returns the value of thepolicyrecord component.Returns the value of thepolicyCommitmentrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
Record
public Record(PkiId objectId, DisclosureService.ObjectType objectType, DisclosureService.Policy policy, Optional<String> ownerPrincipalId, Optional<String> ownerAcmeAccountId, String policyCommitment, Instant updatedAt) Validates the durable disclosure record. -
Record
public Record(PkiId objectId, DisclosureService.ObjectType objectType, DisclosureService.Policy policy, Optional<String> ownerPrincipalId, String policyCommitment, Instant updatedAt) Creates a record with optional administrative-principal ownership.- Parameters:
objectId- exact protected object identifierobjectType- protected object classificationpolicy- effective disclosure policyownerPrincipalId- optional administrative ownerpolicyCommitment- governing profile or policy commitmentupdatedAt- server-authoritative last-update time
-
-
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). -
objectId
-
objectType
Returns the value of theobjectTyperecord component.- Returns:
- the value of the
objectTyperecord component
-
policy
-
ownerPrincipalId
Returns the value of theownerPrincipalIdrecord component.- Returns:
- the value of the
ownerPrincipalIdrecord component
-
ownerAcmeAccountId
Returns the value of theownerAcmeAccountIdrecord component.- Returns:
- the value of the
ownerAcmeAccountIdrecord component
-
policyCommitment
Returns the value of thepolicyCommitmentrecord component.- Returns:
- the value of the
policyCommitmentrecord component
-
updatedAt
-