Record Class RepositoryAliasService.Record

java.lang.Object
java.lang.Record
zeroecho.pki.server.RepositoryAliasService.Record
Record Components:
aliasId - deterministic alias identifier
realmId - owning security realm
authorityId - exact logical authority
type - alias type
targetObjectId - exact immutable target object
issuerId - exact issuer generation for chain aliases
pathId - exact chain path for chain aliases
targetCommitment - immutable target commitment
createdAt - server-authoritative creation time
updatedAt - server-authoritative last-update time
actorPrincipalId - principal responsible for the last mutation
state - durable alias state
recordCommitment - 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 Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • aliasId

      public String aliasId()
      Returns the value of the aliasId record component.
      Returns:
      the value of the aliasId record component
    • realmId

      public RealmId realmId()
      Returns the value of the realmId record component.
      Returns:
      the value of the realmId record component
    • authorityId

      public PkiId authorityId()
      Returns the value of the authorityId record component.
      Returns:
      the value of the authorityId record component
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • targetObjectId

      public PkiId targetObjectId()
      Returns the value of the targetObjectId record component.
      Returns:
      the value of the targetObjectId record component
    • issuerId

      public Optional<PkiId> issuerId()
      Returns the value of the issuerId record component.
      Returns:
      the value of the issuerId record component
    • pathId

      public Optional<PkiId> pathId()
      Returns the value of the pathId record component.
      Returns:
      the value of the pathId record component
    • targetCommitment

      public String targetCommitment()
      Returns the value of the targetCommitment record component.
      Returns:
      the value of the targetCommitment record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • updatedAt

      public Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • actorPrincipalId

      public String actorPrincipalId()
      Returns the value of the actorPrincipalId record component.
      Returns:
      the value of the actorPrincipalId record component
    • state

      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • recordCommitment

      public String recordCommitment()
      Returns the value of the recordCommitment record component.
      Returns:
      the value of the recordCommitment record component