Constructor and Description |
---|
IsSigned() |
Modifier and Type | Method and Description |
---|---|
boolean |
eval()
Returns
true if the file exists and is signed with
the signature specified, or, if name wasn't
specified, if the file contains a signature. |
static boolean |
isSigned(File zipFile,
String name)
Returns
true if the file exists and is signed with
the signature specified, or, if name wasn't
specified, if the file contains a signature. |
void |
setFile(File file)
The jarfile that is to be tested for the presence
of a signature.
|
void |
setName(String name)
The signature name to check jarfile for.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public boolean eval()
true
if the file exists and is signed with
the signature specified, or, if name
wasn't
specified, if the file contains a signature.public static boolean isSigned(File zipFile, String name) throws IOException
true
if the file exists and is signed with
the signature specified, or, if name
wasn't
specified, if the file contains a signature.zipFile
- the zipfile to checkname
- the signature to check (may be killed)IOException
- on errorpublic void setFile(File file)
file
- jarfile to be tested.public void setName(String name)
name
- signature to look for.