Record Class ScepEndpoint
java.lang.Object
java.lang.Record
zeroecho.pki.server.scep.ScepEndpoint
- Record Components:
label- URL-safe identifier, 1–64 characters, matching[A-Za-z0-9._-]+- the CA authority identifier whose chain is served on this endpointprofileId- the issuance profile identifier applied to enrollment requestsenrollmentProfileId- mandatory enrollment policy identity, distinct from the issuance profilechallengePasswordHash- SHA-256 hex digest of the challenge password (64 lower-case hex chars)
- All Implemented Interfaces:
EnrollmentEndpoint
public record ScepEndpoint(String label, String authorityId, String profileId, String enrollmentProfileId, String challengePasswordHash)
extends Record
implements EnrollmentEndpoint
Immutable binding that maps a SCEP URL label to a CA authority, an issuance profile,
and a hashed challenge password.
Endpoints are registered and de-registered via the admin API and held in the
ScepService endpoint registry. The label value appears in the SCEP
URL path under /scep/{label}.
The challengePasswordHash field stores a SHA-256 hex digest of the SCEP
challenge password. Endpoint and control metadata contain only that digest;
the exact signed CSR, including its challenge attribute, is retained in the
protected PKI request store and its backups for durable enrollment recovery.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum permitted label length. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorityIdrecord component.Returns the value of thechallengePasswordHashrecord component.Returns the value of theenrollmentProfileIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of theprofileIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAX_LABEL_LENGTH
public static final int MAX_LABEL_LENGTHMaximum permitted label length.- See Also:
-
-
Constructor Details
-
ScepEndpoint
-
-
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). -
label
Returns the value of thelabelrecord component.- Specified by:
labelin interfaceEnrollmentEndpoint- Returns:
- the value of the
labelrecord component
-
authorityId
Returns the value of theauthorityIdrecord component.- Specified by:
authorityIdin interfaceEnrollmentEndpoint- Returns:
- the value of the
authorityIdrecord component
-
profileId
Returns the value of theprofileIdrecord component.- Specified by:
profileIdin interfaceEnrollmentEndpoint- Returns:
- the value of the
profileIdrecord component
-
enrollmentProfileId
Returns the value of theenrollmentProfileIdrecord component.- Specified by:
enrollmentProfileIdin interfaceEnrollmentEndpoint- Returns:
- the value of the
enrollmentProfileIdrecord component
-
challengePasswordHash
Returns the value of thechallengePasswordHashrecord component.- Returns:
- the value of the
challengePasswordHashrecord component
-