org.apache.tools.ant.taskdefs
Class GenerateKey
Generates a key in a keystore.
- Ant 1.2
GenerateKey.DistinguishedName | createDname() - Distinguished name list.
|
void | execute() - Called by the project to let the task do its work.
|
void | setAlias(String alias) - The alias to add under.
|
void | setDname(String dname) - The distinguished name for entity.
|
void | setKeyalg(String keyalg) - The method to use when generating name-value pair.
|
void | setKeypass(String keypass) - Password for private key (if different).
|
void | setKeysize(String keysize) - Indicates the size of key generated.
|
void | setKeystore(String keystore) - Keystore location.
|
void | setSigalg(String sigalg) - The algorithm to use in signing.
|
void | setStorepass(String storepass) - Password for keystore integrity.
|
void | setStoretype(String storetype) - Keystore type.
|
void | setValidity(String validity) - Indicates how many days certificate is valid.
|
void | setVerbose(boolean verbose) - If true, verbose output when signing.
|
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
alias
protected String alias
The alias of signer.
dname
protected String dname
keyalg
protected String keyalg
keypass
protected String keypass
keysize
protected int keysize
keystore
protected String keystore
The name of keystore file.
sigalg
protected String sigalg
storepass
protected String storepass
storetype
protected String storetype
validity
protected int validity
verbose
protected boolean verbose
execute
public void execute()
throws BuildException
Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.
- execute in interface Task
BuildException
- if something goes wrong with the build
setAlias
public void setAlias(String alias)
The alias to add under.
alias
- alias to add under
setDname
public void setDname(String dname)
The distinguished name for entity.
dname
- distinguished name
setKeyalg
public void setKeyalg(String keyalg)
The method to use when generating name-value pair.
keyalg
- algorithm
setKeypass
public void setKeypass(String keypass)
Password for private key (if different).
keypass
- password
setKeysize
public void setKeysize(String keysize)
throws BuildException
Indicates the size of key generated.
keysize
- size of key
BuildException
- If not an Integer
- Could convert this to a plain Integer setter.
setKeystore
public void setKeystore(String keystore)
Keystore location.
keystore
- location
setSigalg
public void setSigalg(String sigalg)
The algorithm to use in signing.
sigalg
- algorithm
setStorepass
public void setStorepass(String storepass)
Password for keystore integrity.
Must be at least 6 characters long.
storepass
- password
setStoretype
public void setStoretype(String storetype)
Keystore type.
storetype
- type
setValidity
public void setValidity(String validity)
throws BuildException
Indicates how many days certificate is valid.
validity
- days valid
BuildException
- If not an Integer
setVerbose
public void setVerbose(boolean verbose)
If true, verbose output when signing.
verbose
- verbose or not
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.