Record Class RepositoryAliasService.Record
java.lang.Object
java.lang.Record
zeroecho.pki.server.RepositoryAliasService.Record
- Record Components:
aliasId- deterministic alias identifierrealmId- owning security realm- exact logical authoritytype- alias typetargetObjectId- exact immutable target objectissuerId- exact issuer generation for chain aliasespathId- exact chain path for chain aliasestargetCommitment- immutable target commitmentcreatedAt- server-authoritative creation timeupdatedAt- server-authoritative last-update timeactorPrincipalId- principal responsible for the last mutationstate- durable alias staterecordCommitment- commitment to the complete alias record
- Enclosing class:
RepositoryAliasService
public static record RepositoryAliasService.Record(String aliasId, RealmId realmId, PkiId authorityId, RepositoryAliasService.Type type, PkiId targetObjectId, Optional<PkiId> issuerId, Optional<PkiId> pathId, String targetCommitment, Instant createdAt, Instant updatedAt, String actorPrincipalId, RepositoryAliasService.State state, String recordCommitment)
extends Record
Immutable finite alias metadata; no content bytes or filesystem paths.
-
Constructor Summary
ConstructorsConstructorDescriptionRecord(String aliasId, RealmId realmId, PkiId authorityId, RepositoryAliasService.Type type, PkiId targetObjectId, Optional<PkiId> issuerId, Optional<PkiId> pathId, String targetCommitment, Instant createdAt, Instant updatedAt, String actorPrincipalId, RepositoryAliasService.State state, String recordCommitment) Validates exact alias identity and commitments. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactorPrincipalIdrecord component.aliasId()Returns the value of thealiasIdrecord component.Returns the value of theauthorityIdrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issuerId()Returns the value of theissuerIdrecord component.pathId()Returns the value of thepathIdrecord component.realmId()Returns the value of therealmIdrecord component.Returns the value of therecordCommitmentrecord component.state()Returns the value of thestaterecord component.Returns the value of thetargetCommitmentrecord component.Returns the value of thetargetObjectIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
Record
public Record(String aliasId, RealmId realmId, PkiId authorityId, RepositoryAliasService.Type type, PkiId targetObjectId, Optional<PkiId> issuerId, Optional<PkiId> pathId, String targetCommitment, Instant createdAt, Instant updatedAt, String actorPrincipalId, RepositoryAliasService.State state, String recordCommitment) Validates exact alias identity and commitments.
-
-
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). -
aliasId
-
realmId
-
authorityId
Returns the value of theauthorityIdrecord component.- Returns:
- the value of the
authorityIdrecord component
-
type
-
targetObjectId
Returns the value of thetargetObjectIdrecord component.- Returns:
- the value of the
targetObjectIdrecord component
-
issuerId
-
pathId
-
targetCommitment
Returns the value of thetargetCommitmentrecord component.- Returns:
- the value of the
targetCommitmentrecord component
-
createdAt
-
updatedAt
-
actorPrincipalId
Returns the value of theactorPrincipalIdrecord component.- Returns:
- the value of the
actorPrincipalIdrecord component
-
state
-
recordCommitment
Returns the value of therecordCommitmentrecord component.- Returns:
- the value of the
recordCommitmentrecord component
-