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 state
isFinalStatus - 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 Details

    • SigningRequestStatus

      public SigningRequestStatus(String status, String workflowStatus, boolean isFinalStatus, URI signedArtifactLink, URI unsignedArtifactLink)
      Creates an instance of a SigningRequestStatus record class.
      Parameters:
      status - the value for the status record component
      workflowStatus - the value for the workflowStatus record component
      isFinalStatus - the value for the isFinalStatus record component
      signedArtifactLink - the value for the signedArtifactLink record component
      unsignedArtifactLink - the value for the unsignedArtifactLink record component
  • Method Details

    • isCompleted

      public boolean isCompleted()
      Returns true if the signing request completed successfully.
      Returns:
      true when status is "Completed"
    • isFailed

      public boolean isFailed()
      Returns true if the signing request failed.
      Returns:
      true when status is "Failed"
    • isDenied

      public boolean isDenied()
      Returns true if the signing request was denied.
      Returns:
      true when status is "Denied"
    • isCanceled

      public boolean isCanceled()
      Returns true if the signing request was canceled.
      Returns:
      true when status is "Canceled"
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • workflowStatus

      public String workflowStatus()
      Returns the value of the workflowStatus record component.
      Returns:
      the value of the workflowStatus record component
    • isFinalStatus

      public boolean isFinalStatus()
      Returns the value of the isFinalStatus record component.
      Returns:
      the value of the isFinalStatus record component
    • signedArtifactLink

      public URI signedArtifactLink()
      Returns the value of the signedArtifactLink record component.
      Returns:
      the value of the signedArtifactLink record component
    • unsignedArtifactLink

      public URI unsignedArtifactLink()
      Returns the value of the unsignedArtifactLink record component.
      Returns:
      the value of the unsignedArtifactLink record component