Record Class OperationSecurityDescriptors.Descriptor
java.lang.Object
java.lang.Record
zeroecho.pki.server.OperationSecurityDescriptors.Descriptor
- Record Components:
operationId- stable typed-operation identityfamily- internally fixed execution familyaction- required permissionresourceType- required resource typemutating- whether the operation may commit statedataView- required data viewapprovalCategory- approval treatmenteligibility- future transport eligibility metadata
- Enclosing class:
OperationSecurityDescriptors
public static record OperationSecurityDescriptors.Descriptor(String operationId, OperationSecurityDescriptors.Family family, Permission.Action action, Permission.ResourceType resourceType, boolean mutating, Permission.DataView dataView, OperationSecurityDescriptors.ApprovalCategory approvalCategory, OperationSecurityDescriptors.Eligibility eligibility)
extends Record
Immutable operation security descriptor.
-
Constructor Summary
ConstructorsConstructorDescriptionDescriptor(String operationId, OperationSecurityDescriptors.Family family, Permission.Action action, Permission.ResourceType resourceType, boolean mutating, Permission.DataView dataView, OperationSecurityDescriptors.ApprovalCategory approvalCategory, OperationSecurityDescriptors.Eligibility eligibility) Validates one finite descriptor.Descriptor(String operationId, Permission.Action action, Permission.ResourceType resourceType, boolean mutating, Permission.DataView dataView, OperationSecurityDescriptors.ApprovalCategory approvalCategory, OperationSecurityDescriptors.Eligibility eligibility) Creates an existing PKI-family descriptor for embedded callers. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theapprovalCategoryrecord component.booleanReturns whether this operation may be advertised for execution.dataView()Returns the value of thedataViewrecord component.Returns the value of theeligibilityrecord component.final booleanIndicates whether some other object is "equal to" this one.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.booleanmutating()Returns the value of themutatingrecord component.Returns the value of theoperationIdrecord component.Returns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Descriptor
public Descriptor(String operationId, OperationSecurityDescriptors.Family family, Permission.Action action, Permission.ResourceType resourceType, boolean mutating, Permission.DataView dataView, OperationSecurityDescriptors.ApprovalCategory approvalCategory, OperationSecurityDescriptors.Eligibility eligibility) Validates one finite descriptor. -
Descriptor
public Descriptor(String operationId, Permission.Action action, Permission.ResourceType resourceType, boolean mutating, Permission.DataView dataView, OperationSecurityDescriptors.ApprovalCategory approvalCategory, OperationSecurityDescriptors.Eligibility eligibility) Creates an existing PKI-family descriptor for embedded callers.- Parameters:
operationId- stable typed-operation identityaction- required permissionresourceType- required resource typemutating- whether the operation may commit statedataView- required data viewapprovalCategory- approval treatmenteligibility- transport eligibility
-
-
Method Details
-
available
public boolean available()Returns whether this operation may be advertised for execution. Restore remains registered for authorization and approval of legacy requests, but is unavailable until safe cold activation is supported.- Returns:
- whether the operation is available
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
family
-
action
-
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
mutating
-
dataView
-
approvalCategory
Returns the value of theapprovalCategoryrecord component.- Returns:
- the value of the
approvalCategoryrecord component
-
eligibility
Returns the value of theeligibilityrecord component.- Returns:
- the value of the
eligibilityrecord component
-