Record Class AuditorViews.Source

java.lang.Object
java.lang.Record
zeroecho.pki.server.AuditorViews.Source
Record Components:
objectId - exact object identifier
type - resource type
scope - exact security scope
lifecycleState - bounded lifecycle state
createdAt - authoritative creation time
algorithmId - algorithm identity
bindingId - optional representation binding identifier
commitment - immutable object commitment
subjectPresent - whether subject PII exists
subjectAlternativeNameCount - number of subject-alternative names
fullSubject - optional full subject PII
fullSubjectAlternativeNames - full subject-alternative-name PII
content - optional full binary content
Enclosing class:
AuditorViews

public static record AuditorViews.Source(PkiId objectId, Permission.ResourceType type, Permission.Scope scope, String lifecycleState, Instant createdAt, String algorithmId, Optional<String> bindingId, String commitment, boolean subjectPresent, int subjectAlternativeNameCount, Optional<String> fullSubject, List<String> fullSubjectAlternativeNames, Optional<byte[]> content) extends Record
Safe source metadata from which authorized projections are produced.
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • objectId

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

      public Permission.ResourceType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • scope

      public Permission.Scope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • lifecycleState

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

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

      public String algorithmId()
      Returns the value of the algorithmId record component.
      Returns:
      the value of the algorithmId record component
    • bindingId

      public Optional<String> bindingId()
      Returns the value of the bindingId record component.
      Returns:
      the value of the bindingId record component
    • commitment

      public String commitment()
      Returns the value of the commitment record component.
      Returns:
      the value of the commitment record component
    • subjectPresent

      public boolean subjectPresent()
      Returns the value of the subjectPresent record component.
      Returns:
      the value of the subjectPresent record component
    • subjectAlternativeNameCount

      public int subjectAlternativeNameCount()
      Returns the value of the subjectAlternativeNameCount record component.
      Returns:
      the value of the subjectAlternativeNameCount record component
    • fullSubject

      public Optional<String> fullSubject()
      Returns the value of the fullSubject record component.
      Returns:
      the value of the fullSubject record component
    • fullSubjectAlternativeNames

      public List<String> fullSubjectAlternativeNames()
      Returns the value of the fullSubjectAlternativeNames record component.
      Returns:
      the value of the fullSubjectAlternativeNames record component
    • content

      public Optional<byte[]> content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component