public interface

ContentSignerParameters

com.sun.jarsigner.ContentSignerParameters

Class Overview

This interface encapsulates the parameters for a ContentSigner object.

Summary

Public Methods
abstract String[] getCommandLine()
Retrieves the command-line arguments passed to the jarsigner tool.
abstract byte[] getContent()
Retrieves the content that was signed.
abstract byte[] getSignature()
Retrieves the JAR file's signature.
abstract String getSignatureAlgorithm()
Retrieves the name of the signature algorithm.
abstract X509Certificate[] getSignerCertificateChain()
Retrieves the signer's X.509 certificate chain.
abstract ZipFile getSource()
Retrieves the original source ZIP file before it was signed.
abstract URI getTimestampingAuthority()
Retrieves the identifier for a Timestamping Authority (TSA).
abstract X509Certificate getTimestampingAuthorityCertificate()
Retrieves the certificate for a Timestamping Authority (TSA).

Public Methods

public abstract String[] getCommandLine ()

Retrieves the command-line arguments passed to the jarsigner tool.

Returns
  • The command-line arguments. May be null.

public abstract byte[] getContent ()

Retrieves the content that was signed. The content is the JAR file's signature file.

Returns
  • The content bytes. May be null.

public abstract byte[] getSignature ()

Retrieves the JAR file's signature.

Returns
  • The non-null array of signature bytes.

public abstract String getSignatureAlgorithm ()

Retrieves the name of the signature algorithm.

Returns
  • The non-null string name of the signature algorithm.

public abstract X509Certificate[] getSignerCertificateChain ()

Retrieves the signer's X.509 certificate chain.

Returns
  • The non-null array of X.509 public-key certificates.

public abstract ZipFile getSource ()

Retrieves the original source ZIP file before it was signed.

Returns
  • The original ZIP file. May be null.

public abstract URI getTimestampingAuthority ()

Retrieves the identifier for a Timestamping Authority (TSA).

Returns
  • The TSA identifier. May be null.

public abstract X509Certificate getTimestampingAuthorityCertificate ()

Retrieves the certificate for a Timestamping Authority (TSA).

Returns
  • The TSA certificate. May be null.