Record Class AuditorViews.Source
java.lang.Object
java.lang.Record
zeroecho.pki.server.AuditorViews.Source
- Record Components:
objectId- exact object identifiertype- resource typescope- exact security scopelifecycleState- bounded lifecycle statecreatedAt- authoritative creation timealgorithmId- algorithm identitybindingId- optional representation binding identifiercommitment- immutable object commitmentsubjectPresent- whether subject PII existssubjectAlternativeNameCount- number of subject-alternative namesfullSubject- optional full subject PIIfullSubjectAlternativeNames- full subject-alternative-name PIIcontent- 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 Summary
ConstructorsConstructorDescriptionSource(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) Validates and snapshots finite source data. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmIdrecord component.Returns the value of thebindingIdrecord component.Returns the value of thecommitmentrecord component.Optional<byte[]> content()Returns the value of thecontentrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullSubjectrecord component.Returns the value of thefullSubjectAlternativeNamesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelifecycleStaterecord component.objectId()Returns the value of theobjectIdrecord component.scope()Returns the value of thescoperecord component.intReturns the value of thesubjectAlternativeNameCountrecord component.booleanReturns the value of thesubjectPresentrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Source
public 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) Validates and snapshots finite source data.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
objectId
-
type
-
scope
-
lifecycleState
Returns the value of thelifecycleStaterecord component.- Returns:
- the value of the
lifecycleStaterecord component
-
createdAt
-
algorithmId
Returns the value of thealgorithmIdrecord component.- Returns:
- the value of the
algorithmIdrecord component
-
bindingId
-
commitment
Returns the value of thecommitmentrecord component.- Returns:
- the value of the
commitmentrecord component
-
subjectPresent
public boolean subjectPresent()Returns the value of thesubjectPresentrecord component.- Returns:
- the value of the
subjectPresentrecord component
-
subjectAlternativeNameCount
public int subjectAlternativeNameCount()Returns the value of thesubjectAlternativeNameCountrecord component.- Returns:
- the value of the
subjectAlternativeNameCountrecord component
-
fullSubject
Returns the value of thefullSubjectrecord component.- Returns:
- the value of the
fullSubjectrecord component
-
fullSubjectAlternativeNames
Returns the value of thefullSubjectAlternativeNamesrecord component.- Returns:
- the value of the
fullSubjectAlternativeNamesrecord component
-
content
-