| org.apache.tools.ant.types.DataType org.apache.tools.ant.taskdefs.condition.IsSigned
IsSigned | public class IsSigned extends DataType implements Condition(Code) | | Checks whether a jarfile is signed: if the name of the
signature is passed, the file is checked for presence of that
particular signature; otherwise the file is checked for the
existence of any signature.
|
Method Summary | |
public 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. | public 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. | public void | setFile(File file) The jarfile that is to be tested for the presence
of a signature. | public void | setName(String name) The signature name to check jarfile for. |
eval | public boolean eval()(Code) | | 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.
true if the file is signed. |
isSigned | public static boolean isSigned(File zipFile, String name) throws IOException(Code) | | 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.
Parameters: zipFile - the zipfile to check Parameters: name - the signature to check (may be killed) true if the file is signed. throws: IOException - on error |
setFile | public void setFile(File file)(Code) | | The jarfile that is to be tested for the presence
of a signature.
Parameters: file - jarfile to be tested. |
setName | public void setName(String name)(Code) | | The signature name to check jarfile for.
Parameters: name - signature to look for. |
|
|