Package org.eclipse.csi.codesign
Record Class SigningRequestStatus
java.lang.Object
java.lang.Record
org.eclipse.csi.codesign.SigningRequestStatus
- Record Components:
status- the signing request status (e.g. "Completed", "Failed", "Denied", "Canceled")workflowStatus- the detailed workflow processing stateisFinalStatus- whether the status is terminal (polling should stop)signedArtifactLink- URI to download the signed artifact (present when completed)unsignedArtifactLink- URI to the original unsigned artifact
public record SigningRequestStatus(String status, String workflowStatus, boolean isFinalStatus, URI signedArtifactLink, URI unsignedArtifactLink)
extends Record
Maps the JSON response from the SignPath signing request status endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionSigningRequestStatus(String status, String workflowStatus, boolean isFinalStatus, URI signedArtifactLink, URI unsignedArtifactLink) Creates an instance of aSigningRequestStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturnstrueif the signing request was canceled.booleanReturnstrueif the signing request completed successfully.booleanisDenied()Returnstrueif the signing request was denied.booleanisFailed()Returnstrueif the signing request failed.booleanReturns the value of theisFinalStatusrecord component.Returns the value of thesignedArtifactLinkrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunsignedArtifactLinkrecord component.Returns the value of theworkflowStatusrecord component.
-
Constructor Details
-
SigningRequestStatus
public SigningRequestStatus(String status, String workflowStatus, boolean isFinalStatus, URI signedArtifactLink, URI unsignedArtifactLink) Creates an instance of aSigningRequestStatusrecord class.- Parameters:
status- the value for thestatusrecord componentworkflowStatus- the value for theworkflowStatusrecord componentisFinalStatus- the value for theisFinalStatusrecord componentsignedArtifactLink- the value for thesignedArtifactLinkrecord componentunsignedArtifactLink- the value for theunsignedArtifactLinkrecord component
-
-
Method Details
-
isCompleted
public boolean isCompleted()Returnstrueif the signing request completed successfully.- Returns:
truewhen status is"Completed"
-
isFailed
public boolean isFailed()Returnstrueif the signing request failed.- Returns:
truewhen status is"Failed"
-
isDenied
public boolean isDenied()Returnstrueif the signing request was denied.- Returns:
truewhen status is"Denied"
-
isCanceled
public boolean isCanceled()Returnstrueif the signing request was canceled.- Returns:
truewhen status is"Canceled"
-
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. -
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. -
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 '=='. -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
workflowStatus
Returns the value of theworkflowStatusrecord component.- Returns:
- the value of the
workflowStatusrecord component
-
isFinalStatus
public boolean isFinalStatus()Returns the value of theisFinalStatusrecord component.- Returns:
- the value of the
isFinalStatusrecord component
-
signedArtifactLink
Returns the value of thesignedArtifactLinkrecord component.- Returns:
- the value of the
signedArtifactLinkrecord component
-
unsignedArtifactLink
Returns the value of theunsignedArtifactLinkrecord component.- Returns:
- the value of the
unsignedArtifactLinkrecord component
-