org.apache.tools.ant.taskdefs
Class GenerateKey
Generates a key in a keystore.
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
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.
setKeypass
public void setKeypass(String keypass)
Password for private key (if different).
setKeysize
public void setKeysize(String keysize)
throws BuildException
Indicates the size of key generated.
- Could convert this to a plain Integer setter.
setKeystore
public void setKeystore(String keystore)
Keystore location.
setSigalg
public void setSigalg(String sigalg)
The algorithm to use in signing.
setStorepass
public void setStorepass(String storepass)
Password for keystore integrity.
Must be at least 6 characters long.
setStoretype
public void setStoretype(String storetype)
Keystore type.
setValidity
public void setValidity(String validity)
throws BuildException
Indicates how many days certificate is valid.
setVerbose
public void setVerbose(boolean verbose)
If true, verbose output when signing.
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.