org.apache.commons.openpgp.ant
Class OpenPgpVerifierTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.commons.openpgp.ant.OpenPgpVerifierTask
All Implemented Interfaces:
Cloneable

public class OpenPgpVerifierTask
extends org.apache.tools.ant.Task

Verify a signature using the Bouncy Castle OpenPGP provider.

Author:
Dennis Lundberg

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
OpenPgpVerifierTask()
           
 
Method Summary
 org.apache.tools.ant.types.Mapper createMapper()
          Define the mapper to map source to destination files.
 void execute()
           
 void setArtefact(File artefact)
          Set the artefact to be handled.
 void setAsciiarmor(boolean asciiarmor)
          Use ASCII armored signature files?
 void setPassword(String password)
          Set the value of the password.
 void setPubring(File pubring)
          Set the public keyring.
 void setSecring(File secring)
          Set the secret keyring.
 void setVerifyproperty(String verifyproperty)
          Set the name of the property that contains the result of the verification.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenPgpVerifierTask

public OpenPgpVerifierTask()
Method Detail

setSecring

public void setSecring(File secring)
Set the secret keyring.

Parameters:
secring - secret keyring file

setPubring

public void setPubring(File pubring)
Set the public keyring.

Parameters:
pubring - public keyring file

setAsciiarmor

public void setAsciiarmor(boolean asciiarmor)
Use ASCII armored signature files?

Parameters:
asciiarmor - ascii armored signatures?

setPassword

public void setPassword(String password)
Set the value of the password.

Parameters:
password - value of the password

setArtefact

public void setArtefact(File artefact)
Set the artefact to be handled.

Parameters:
artefact - artefact to be handled

setVerifyproperty

public void setVerifyproperty(String verifyproperty)
Set the name of the property that contains the result of the verification.

Parameters:
verifyproperty - name of the property

createMapper

public org.apache.tools.ant.types.Mapper createMapper()
                                               throws org.apache.tools.ant.BuildException
Define the mapper to map source to destination files.

Returns:
a mapper to be configured.
Throws:
org.apache.tools.ant.BuildException - if more than one mapper is defined.

execute

public void execute()
Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.