public class

SignatureFileVerifier

extends Object
java.lang.Object
   ↳ sun.security.util.SignatureFileVerifier

Summary

Public Constructors
SignatureFileVerifier(ArrayList<CodeSigner[]> signerCache, ManifestDigester md, String name, byte[] rawBytes)
Create the named SignatureFileVerifier.
Public Methods
static boolean isBlockOrSF(String s)
Utility method used by JarVerifier and JarSigner to determine the signature file names and PKCS7 block files names that are supported
boolean needSignatureFile(String name)
returns true if we need this .SF file.
boolean needSignatureFileBytes()
returns true if we need the .SF file
void process(Hashtable<StringCodeSigner[]> signers)
process the signature block file.
void setSignatureFile(byte[] sfBytes)
used to set the raw bytes of the .SF file when it is external to the signature block file.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SignatureFileVerifier (ArrayList<CodeSigner[]> signerCache, ManifestDigester md, String name, byte[] rawBytes)

Create the named SignatureFileVerifier.

Parameters
name the name of the signature block file (.DSA/.RSA)
rawBytes the raw bytes of the signature block file

Public Methods

public static boolean isBlockOrSF (String s)

Utility method used by JarVerifier and JarSigner to determine the signature file names and PKCS7 block files names that are supported

Parameters
s file name
Returns
  • true if the input file name is a supported Signature File or PKCS7 block file name

public boolean needSignatureFile (String name)

returns true if we need this .SF file.

Parameters
name the name of the .SF file without the extension

public boolean needSignatureFileBytes ()

returns true if we need the .SF file

public void process (Hashtable<StringCodeSigner[]> signers)

process the signature block file. Goes through the .SF file and adds code signers for each section where the .SF section hash was verified against the Manifest section.

public void setSignatureFile (byte[] sfBytes)

used to set the raw bytes of the .SF file when it is external to the signature block file.