Record Class EnrollmentCoordinator.Admission
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentCoordinator.Admission
- Record Components:
protocol- protocol familyendpointId- configured label, or exact ACME directory IDrequester- authenticated protocol requestertransactionId- SHA-256 of the protocol transaction coordinateoperation- operation replay domainpayload- exact proved requestvalidity- optional requested validitypredecessorId- authoritative renewal predecessorprotocolDeadline- additional immutable protocol expiry, mandatory for ACME orders
- Enclosing class:
EnrollmentCoordinator
public static record EnrollmentCoordinator.Admission(EnrollmentTransaction.Protocol protocol, String endpointId, EnrollmentTransaction.Requester requester, String transactionId, EnrollmentTransaction.Operation operation, X509EnrollmentPayload payload, Optional<Validity> validity, Optional<PkiId> predecessorId, Optional<Instant> protocolDeadline)
extends Record
Verified adapter input; this API does not authenticate wire messages.
-
Constructor Summary
ConstructorsConstructorDescriptionAdmission(EnrollmentTransaction.Protocol protocol, String endpointId, EnrollmentTransaction.Requester requester, String transactionId, EnrollmentTransaction.Operation operation, X509EnrollmentPayload payload, Optional<Validity> validity, Optional<PkiId> predecessorId) Creates input for a protocol governed solely by configured admission lifetime.Admission(EnrollmentTransaction.Protocol protocol, String endpointId, EnrollmentTransaction.Requester requester, String transactionId, EnrollmentTransaction.Operation operation, X509EnrollmentPayload payload, Optional<Validity> validity, Optional<PkiId> predecessorId, Optional<Instant> protocolDeadline) Validates bounded, non-null adapter input without retaining mutable data. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theendpointIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.payload()Returns the value of thepayloadrecord component.Returns the value of thepredecessorIdrecord component.protocol()Returns the value of theprotocolrecord component.Returns the value of theprotocolDeadlinerecord component.Returns the value of therequesterrecord component.toString()Returns a string representation of this record class.Returns the value of thetransactionIdrecord component.validity()Returns the value of thevalidityrecord component.
-
Constructor Details
-
Admission
public Admission(EnrollmentTransaction.Protocol protocol, String endpointId, EnrollmentTransaction.Requester requester, String transactionId, EnrollmentTransaction.Operation operation, X509EnrollmentPayload payload, Optional<Validity> validity, Optional<PkiId> predecessorId) Creates input for a protocol governed solely by configured admission lifetime.- Parameters:
protocol- non-ACME protocol familyendpointId- stable endpoint labelrequester- verified actor evidencetransactionId- protocol transaction commitmentoperation- requested operationpayload- exact request payloadvalidity- optional certificate validitypredecessorId- optional renewal or replacement predecessor
-
Admission
public Admission(EnrollmentTransaction.Protocol protocol, String endpointId, EnrollmentTransaction.Requester requester, String transactionId, EnrollmentTransaction.Operation operation, X509EnrollmentPayload payload, Optional<Validity> validity, Optional<PkiId> predecessorId, Optional<Instant> protocolDeadline) Validates bounded, non-null adapter input without retaining mutable 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. All components in this record class are compared withObjects::equals(Object,Object). -
protocol
-
endpointId
Returns the value of theendpointIdrecord component.- Returns:
- the value of the
endpointIdrecord component
-
requester
-
transactionId
Returns the value of thetransactionIdrecord component.- Returns:
- the value of the
transactionIdrecord component
-
operation
-
payload
-
validity
-
predecessorId
Returns the value of thepredecessorIdrecord component.- Returns:
- the value of the
predecessorIdrecord component
-
protocolDeadline
Returns the value of theprotocolDeadlinerecord component.- Returns:
- the value of the
protocolDeadlinerecord component
-