org.apache.commons.openpgp.ant
Class OpenPgpSignerTask

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

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


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
OpenPgpSignerTask()
           
 
Method Summary
 void add(org.apache.tools.ant.types.FileSet fs)
           
 org.apache.tools.ant.types.Mapper createMapper()
          Define the mapper to map source to destination files.
 void execute()
           
 void setArtefact(File artefact)
          artefact to be signed
 void setAsciiarmor(boolean asciiarmor)
          asciiarmor the signature ?
 void setKeyId(String keyId)
          set the key id
 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
 
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

OpenPgpSignerTask

public OpenPgpSignerTask()
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

setKeyId

public void setKeyId(String keyId)
set the key id

Parameters:
keyId -

setAsciiarmor

public void setAsciiarmor(boolean asciiarmor)
asciiarmor the signature ?

Parameters:
asciiarmor - ascii armored signature ?

setPassword

public void setPassword(String password)
set the value of the password

Parameters:
password - value of the password

setArtefact

public void setArtefact(File artefact)
artefact to be signed

Parameters:
artefact - artefact to be signed

add

public void add(org.apache.tools.ant.types.FileSet fs)

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.