Record Class PkiOperation.RegisterIssuerChainPath

java.lang.Object
java.lang.Record
zeroecho.pki.application.PkiOperation.RegisterIssuerChainPath
Record Components:
caId - exact non-null authority identifier
issuerId - exact non-null member generation identifier
parentPathId - exact non-null immutable parent-path identifier
All Implemented Interfaces:
PkiOperation
Enclosing interface:
PkiOperation

public static record PkiOperation.RegisterIssuerChainPath(PkiId caId, PkiId issuerId, PkiId parentPathId) extends Record implements PkiOperation
Registers a chain path by prepending a member generation's credential to a parent path.

The CA and generation need not be active. Existing store validation enforces certificate relationships and a maximum of 32 credentials. Registration never changes the CA head or selected path. Success returns the fields of PkiOperation.InspectIssuerChainPath; duplicate immutable creation retains the store's rejection behavior.

  • Field Details

  • Constructor Details

    • RegisterIssuerChainPath

      public RegisterIssuerChainPath(PkiId caId, PkiId issuerId, PkiId parentPathId)
      Creates an immutable path-registration request.
      Parameters:
      caId - exact authority identifier
      issuerId - exact member generation identifier
      parentPathId - exact parent-path identifier
      Throws:
      NullPointerException - if an identifier is null
  • Method Details

    • name

      public String name()
      Returns the stable semantic name "issuer.path.register".
      Specified by:
      name in interface PkiOperation
      Returns:
      the stable semantic name "issuer.path.register"
    • 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.
    • caId

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

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

      public PkiId parentPathId()
      Returns the value of the parentPathId record component.
      Returns:
      the value of the parentPathId record component