Class SignatureTrailerDataContentBuilder.SingleSelector

java.lang.Object
zeroecho.sdk.builders.SignatureTrailerDataContentBuilder.SingleSelector
Enclosing class:
SignatureTrailerDataContentBuilder

public static final class SignatureTrailerDataContentBuilder.SingleSelector extends Object
Helper entry for single-algorithm signature construction.
Since:
1.0
  • Method Details

    • sign

      public SignatureTrailerDataContentBuilder sign(String algorithmId, PrivateKey privateKey)
      Creates a signing trailer for a single signature algorithm (no spec).
      Parameters:
      algorithmId - signature algorithm id
      privateKey - private key for signing
      Returns:
      builder ready to be added to a pipeline
      Throws:
      NullPointerException - if algorithmId or privateKey is null
      IllegalStateException - if the signature context cannot be created (e.g., I/O/provider issues)
      Since:
      1.0
    • sign

      public SignatureTrailerDataContentBuilder sign(String algorithmId, PrivateKey privateKey, ContextSpec spec)
      Creates a signing trailer for a single signature algorithm with an optional spec.
      Parameters:
      algorithmId - signature algorithm id
      privateKey - private key for signing
      spec - optional context spec (may be null)
      Returns:
      builder ready to be added to a pipeline
      Throws:
      NullPointerException - if algorithmId or privateKey is null
      IllegalStateException - if the signature context cannot be created (e.g., I/O/provider issues)
      Since:
      1.0
    • verify

      public SignatureTrailerDataContentBuilder verify(String algorithmId, PublicKey publicKey)
      Creates a verification trailer for a single signature algorithm (no spec).
      Parameters:
      algorithmId - signature algorithm id
      publicKey - public key for verification
      Returns:
      builder ready to be added to a pipeline
      Throws:
      NullPointerException - if algorithmId or publicKey is null
      IllegalStateException - if the signature context cannot be created (e.g., I/O/provider issues)
      Since:
      1.0
    • verify

      public SignatureTrailerDataContentBuilder verify(String algorithmId, PublicKey publicKey, ContextSpec spec)
      Creates a verification trailer for a single signature algorithm with an optional spec.
      Parameters:
      algorithmId - signature algorithm id
      publicKey - public key for verification
      spec - optional context spec (may be null)
      Returns:
      builder ready to be added to a pipeline
      Throws:
      NullPointerException - if algorithmId or publicKey is null
      IllegalStateException - if the signature context cannot be created (e.g., I/O/provider issues)
      Since:
      1.0