public class SignatureFileVerifier
extends java.lang.Object
| Constructor and Description |
|---|
SignatureFileVerifier(java.util.ArrayList<java.security.CodeSigner[]> signerCache,
ManifestDigester md,
java.lang.String name,
byte[] rawBytes)
Create the named SignatureFileVerifier.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBlockOrSF(java.lang.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(java.lang.String name)
returns true if we need this .SF file.
|
boolean |
needSignatureFileBytes()
returns true if we need the .SF file
|
void |
process(java.util.Hashtable<java.lang.String,java.security.CodeSigner[]> 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.
|
public SignatureFileVerifier(java.util.ArrayList<java.security.CodeSigner[]> signerCache,
ManifestDigester md,
java.lang.String name,
byte[] rawBytes)
throws java.io.IOException,
java.security.cert.CertificateException
name - the name of the signature block file (.DSA/.RSA)rawBytes - the raw bytes of the signature block filejava.io.IOExceptionjava.security.cert.CertificateExceptionpublic boolean needSignatureFileBytes()
public boolean needSignatureFile(java.lang.String name)
name - the name of the .SF file without the extensionpublic void setSignatureFile(byte[] sfBytes)
public static boolean isBlockOrSF(java.lang.String s)
s - file namepublic void process(java.util.Hashtable<java.lang.String,java.security.CodeSigner[]> signers)
throws java.io.IOException,
java.security.SignatureException,
java.security.NoSuchAlgorithmException,
java.util.jar.JarException,
java.security.cert.CertificateException
java.io.IOExceptionjava.security.SignatureExceptionjava.security.NoSuchAlgorithmExceptionjava.util.jar.JarExceptionjava.security.cert.CertificateExceptionCopyright © 2020. All Rights Reserved.