|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
edu.vt.middleware.crypt.tasks.AbstractCryptTask
public abstract class AbstractCryptTask
AbstractCryptTask provides common methods for crypt ant
tasks.
| Field Summary | |
|---|---|
protected String |
algorithm
Algorithm name. |
protected String |
iv
Initialization vector for encryption/decryption. |
protected String |
mode
Mode used for encryption and decryption. |
protected String |
padding
Padding used for encryption and decryption. |
protected File |
privateKey
Private key to read. |
protected String |
propertyName
Property name to set. |
| 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 | |
|---|---|
AbstractCryptTask()
|
|
| Method Summary | |
|---|---|
protected SymmetricAlgorithm |
createAlgorithm()
Creates a new symmetric algorithm cipher and initializes it using task properties. |
abstract void |
execute()
See @link{org.apache.tools.ant.Task}. |
void |
setAlgorithm(String s)
This sets the algorithm used for decryption. |
void |
setIv(String s)
This sets the initialization vector used for encryption/decryption. |
void |
setMode(String s)
This sets the mode used for decryption. |
void |
setName(String s)
This sets the name of the property to set with the decrypted value. |
void |
setPadding(String s)
This sets the padding used for decryption. |
void |
setPrivateKey(File f)
This sets the private key used for decryption. |
| 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 |
| Field Detail |
|---|
protected String propertyName
protected String algorithm
protected String mode
protected String padding
protected String iv
protected File privateKey
| Constructor Detail |
|---|
public AbstractCryptTask()
| Method Detail |
|---|
public void setName(String s)
This sets the name of the property to set with the decrypted value.
s - Stringpublic void setAlgorithm(String s)
This sets the algorithm used for decryption.
s - Stringpublic void setMode(String s)
This sets the mode used for decryption.
s - Stringpublic void setPadding(String s)
This sets the padding used for decryption.
s - Stringpublic void setIv(String s)
This sets the initialization vector used for encryption/decryption.
s - Stringpublic void setPrivateKey(File f)
This sets the private key used for decryption.
f - Filepublic abstract void execute()
See @link{org.apache.tools.ant.Task}.
execute in class org.apache.tools.ant.Task
protected SymmetricAlgorithm createAlgorithm()
throws CryptException,
IOException
CryptException - On cryptographic errors.
IOException - On IO errors reading symmetric key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||