public class IsSigned extends DataType implements Condition
description, location, project
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(java.io.File zipFile,
java.lang.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(java.io.File file)
The jarfile that is to be tested for the presence
of a signature.
|
void |
setName(java.lang.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 void setFile(java.io.File file)
file
- jarfile to be tested.public void setName(java.lang.String name)
name
- signature to look for.public static boolean isSigned(java.io.File zipFile, java.lang.String name) throws java.io.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)java.io.IOException
- on error