Class ResignFileResult

Object
ResignFileResult

public final class ResignFileResult extends Object
Immutable response returned by
invalid reference
co.ankatech.ankasecure.sdk.AnkaSecureSdk#resignFile(java.nio.file.Path, String, String)
.

This class encapsulates a brand-new Compact JWS produced after re-signing a payload, and includes exhaustive metadata for both the old verification key and the new signing key.

Compact JWS Structure

A Compact JWS consists of three Base64URL-encoded segments separated by dots:

  1. Header: JSON object containing signature parameters such as alg (e.g. Falcon-1024) and kid.
  2. Payload: the original file data (detached or embedded).
  3. Signature: the digital signature computed over the header and payload using the negotiated PQC/hybrid algorithm.

Payload persistence

The SDK stores the raw Compact JWS (three Base64URL segments separated by dots, per RFC 7515) into the newSignatureFile path provided by the caller, encoded as UTF-8. Applications may keep the file unchanged or process the token further with any standards-compliant JWS library.

Key metadata

  • oldKeyRequested: the kid originally used for verification.
  • oldKeyUsed: the effective verification kid after rotation.
  • oldKeyAlgorithmUsed: the algorithm negotiated for verification.
  • newKeyRequested: the kid originally supplied for signing.
  • newKeyUsed: the effective signing kid after rotation.
  • newKeyAlgorithmUsed: the algorithm negotiated for signing.

Thread-safety

Instances are immutable data carriers after construction and may be shared across threads safely, provided no setter is invoked.

All getters return non-null values except getWarnings(), which may be null if no warnings were issued.

  • Constructor Details

    • ResignFileResult

      public ResignFileResult()
  • Method Details

    • getJwsToken

      public String getJwsToken()
    • setJwsToken

      public void setJwsToken(String v)
    • getOldKeyRequested

      public String getOldKeyRequested()
    • setOldKeyRequested

      public void setOldKeyRequested(String v)
    • getOldKeyUsed

      public String getOldKeyUsed()
    • setOldKeyUsed

      public void setOldKeyUsed(String v)
    • getOldKeyAlgorithmUsed

      public String getOldKeyAlgorithmUsed()
    • setOldKeyAlgorithmUsed

      public void setOldKeyAlgorithmUsed(String v)
    • getNewKeyRequested

      public String getNewKeyRequested()
    • setNewKeyRequested

      public void setNewKeyRequested(String v)
    • getNewKeyUsed

      public String getNewKeyUsed()
    • setNewKeyUsed

      public void setNewKeyUsed(String v)
    • getNewKeyAlgorithmUsed

      public String getNewKeyAlgorithmUsed()
    • setNewKeyAlgorithmUsed

      public void setNewKeyAlgorithmUsed(String v)
    • getWarnings

      public List<String> getWarnings()
    • setWarnings

      public void setWarnings(List<String> v)