Module jdk.jartool

Interface ContentSignerParameters


@Deprecated(since="9", forRemoval=true) public interface ContentSignerParameters
Deprecated, for removal: This API element is subject to removal in a future version.
This class has been deprecated.
This interface encapsulates the parameters for a ContentSigner object.
Since:
1.5
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the command-line arguments passed to the jarsigner tool.
    byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the content that was signed.
    byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the JAR file's signature.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the name of the signature algorithm.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the signer's X.509 certificate chain.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the original source ZIP file before it was signed.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the identifier for a Timestamping Authority (TSA).
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the certificate for a Timestamping Authority (TSA).
    default String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retreives the message digest algorithm that is used to generate the message imprint to be sent to the TSA server.
    default String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the TSAPolicyID for a Timestamping Authority (TSA).
  • Method Details

    • getCommandLine

      String[] getCommandLine()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the command-line arguments passed to the jarsigner tool.
      Returns:
      The command-line arguments. May be null.
    • getTimestampingAuthority

      URI getTimestampingAuthority()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the identifier for a Timestamping Authority (TSA).
      Returns:
      The TSA identifier. May be null.
    • getTimestampingAuthorityCertificate

      X509Certificate getTimestampingAuthorityCertificate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the certificate for a Timestamping Authority (TSA).
      Returns:
      The TSA certificate. May be null.
    • getTSAPolicyID

      default String getTSAPolicyID()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the TSAPolicyID for a Timestamping Authority (TSA).
      Returns:
      The TSAPolicyID. May be null.
    • getTSADigestAlg

      default String getTSADigestAlg()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retreives the message digest algorithm that is used to generate the message imprint to be sent to the TSA server.
      Returns:
      The non-null string of the message digest algorithm name.
      Since:
      9
    • getSignature

      byte[] getSignature()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the JAR file's signature.
      Returns:
      The non-null array of signature bytes.
    • getSignatureAlgorithm

      String getSignatureAlgorithm()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the name of the signature algorithm.
      Returns:
      The non-null string name of the signature algorithm.
    • getSignerCertificateChain

      X509Certificate[] getSignerCertificateChain()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the signer's X.509 certificate chain.
      Returns:
      The non-null array of X.509 public-key certificates.
    • getContent

      byte[] getContent()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the content that was signed. The content is the JAR file's signature file.
      Returns:
      The content bytes. May be null.
    • getSource

      ZipFile getSource()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the original source ZIP file before it was signed.
      Returns:
      The original ZIP file. May be null.