Record Class DisclosureService.Owner
java.lang.Object
java.lang.Record
zeroecho.pki.server.DisclosureService.Owner
- Record Components:
type- owner namespaceownerId- canonical identity within that namespace
- Enclosing class:
DisclosureService
public static record DisclosureService.Owner(DisclosureService.Owner.OwnerType type, String ownerId)
extends Record
Typed disclosure owner, keeping ACME accounts outside administrative principals.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumClosed owner categories. -
Constructor Summary
ConstructorsConstructorDescriptionOwner(DisclosureService.Owner.OwnerType type, String ownerId) Validates the canonical owner identity. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisclosureService.OwneracmeAccount(String id) Creates a protocol-scoped ACME-account owner.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ownerId()Returns the value of theownerIdrecord component.static DisclosureService.OwnerCreates an administrative-principal owner.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Owner
Validates the canonical owner identity.
-
-
Method Details
-
principal
Creates an administrative-principal owner.- Parameters:
id- canonical principal identifier- Returns:
- typed security-principal owner
-
acmeAccount
Creates a protocol-scoped ACME-account owner.- Parameters:
id- canonical ACME account identifier- Returns:
- typed ACME-account owner
-
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). -
type
-
ownerId
-