Record Class ServerOperationGateway.Request
java.lang.Object
java.lang.Record
zeroecho.pki.server.ServerOperationGateway.Request
- Record Components:
realmId- exact realm identityprincipalId- authenticated end-client principal identityauthenticationMode- explicit administrative authentication modetransportPrincipalId- trusted proxy identity, present only in proxy modecredentialEvidence- trusted end-client credential evidence, never operation dataoperation- existing typed operationresource- exact non-bearer resource referencerelationship- established object relationshipcontext- safe closed-condition contextapprovalId- optional durable approval referencecorrelationId- safe finite request correlation identity
- Enclosing class:
ServerOperationGateway
public static record ServerOperationGateway.Request(RealmId realmId, String principalId, AdministrativeAuthenticationMode authenticationMode, Optional<String> transportPrincipalId, Optional<CertificateIdentityEvidence> credentialEvidence, AdministrativeOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId)
extends Record
Complete transport-neutral request admission input.
-
Constructor Summary
ConstructorsConstructorDescriptionRequest(RealmId realmId, String principalId, PkiOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Wraps an existing PKI operation for source-compatible embedded callers.Request(RealmId realmId, String principalId, AdministrativeAuthenticationMode authenticationMode, Optional<String> transportPrincipalId, Optional<CertificateIdentityEvidence> credentialEvidence, AdministrativeOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Validates the immutable request.Request(RealmId realmId, String principalId, AdministrativeAuthenticationMode authenticationMode, Optional<String> transportPrincipalId, AdministrativeOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Creates an embedded request with no enrollment credential evidence.Request(RealmId realmId, String principalId, AdministrativeOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Creates a direct-mTLS request for existing embedded control callers. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapprovalIdrecord component.Returns the value of theauthenticationModerecord component.context()Returns the value of thecontextrecord component.Returns the value of thecorrelationIdrecord component.Returns the value of thecredentialEvidencerecord 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.Returns the value of theprincipalIdrecord component.realmId()Returns the value of therealmIdrecord component.Returns the value of therelationshiprecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportPrincipalIdrecord component.
-
Constructor Details
-
Request
public Request(RealmId realmId, String principalId, AdministrativeAuthenticationMode authenticationMode, Optional<String> transportPrincipalId, Optional<CertificateIdentityEvidence> credentialEvidence, AdministrativeOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Validates the immutable request. -
Request
public Request(RealmId realmId, String principalId, PkiOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Wraps an existing PKI operation for source-compatible embedded callers.- Parameters:
realmId- target realmprincipalId- authenticated principal identifieroperation- exact typed PKI operationresource- exact target resourcerelationship- requester-to-resource relationshipcontext- closed authorization contextapprovalId- optional execution approvalcorrelationId- bounded non-secret request correlation identifier
-
Request
public Request(RealmId realmId, String principalId, AdministrativeOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Creates a direct-mTLS request for existing embedded control callers.- Parameters:
realmId- target realmprincipalId- authenticated principal identifieroperation- exact typed administrative operationresource- exact target resourcerelationship- requester-to-resource relationshipcontext- closed authorization contextapprovalId- optional execution approvalcorrelationId- bounded non-secret request correlation identifier
-
Request
public Request(RealmId realmId, String principalId, AdministrativeAuthenticationMode authenticationMode, Optional<String> transportPrincipalId, AdministrativeOperation operation, Permission.Resource resource, Permission.Relationship relationship, Permission.Context context, Optional<String> approvalId, String correlationId) Creates an embedded request with no enrollment credential evidence.- Parameters:
realmId- exact target realmprincipalId- authenticated principalauthenticationMode- administrative topologytransportPrincipalId- trusted proxy identity when applicableoperation- typed operationresource- authorized resource coordinatesrelationship- requester relationshipcontext- closed authorization contextapprovalId- optional approval identitycorrelationId- bounded request correlation identity
-
-
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). -
realmId
-
principalId
Returns the value of theprincipalIdrecord component.- Returns:
- the value of the
principalIdrecord component
-
authenticationMode
Returns the value of theauthenticationModerecord component.- Returns:
- the value of the
authenticationModerecord component
-
transportPrincipalId
Returns the value of thetransportPrincipalIdrecord component.- Returns:
- the value of the
transportPrincipalIdrecord component
-
credentialEvidence
Returns the value of thecredentialEvidencerecord component.- Returns:
- the value of the
credentialEvidencerecord component
-
operation
-
resource
-
relationship
Returns the value of therelationshiprecord component.- Returns:
- the value of the
relationshiprecord component
-
context
-
approvalId
Returns the value of theapprovalIdrecord component.- Returns:
- the value of the
approvalIdrecord component
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-