org.apache.tools.ant.taskdefs
public class GenerateKey extends Task
Since: Ant 1.2
UNKNOWN: name="genkey" category="java"
Nested Class Summary | |
---|---|
static class | GenerateKey.DistinguishedName
A class corresponding to the dname nested element. |
static class | GenerateKey.DnameParam
A DistinguishedName parameter.
|
Field Summary | |
---|---|
protected String | alias
The alias of signer. |
protected String | dname |
protected GenerateKey.DistinguishedName | expandedDname |
protected String | keyalg |
protected String | keypass |
protected int | keysize |
protected String | keystore
The name of keystore file. |
protected String | sigalg |
protected String | storepass |
protected String | storetype |
protected int | validity |
protected boolean | verbose |
Method Summary | |
---|---|
GenerateKey.DistinguishedName | createDname()
Distinguished name list.
|
void | execute()
Execute the task. |
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. |
Returns: Distinguished name container.
Throws: BuildException If specified more than once or dname attribute is used.
Throws: BuildException on error
Parameters: alias alias to add under
Parameters: dname distinguished name
Parameters: keyalg algorithm
Parameters: keypass password
Parameters: keysize size of key
Throws: BuildException If not an Integer
UNKNOWN: Could convert this to a plain Integer setter.
Parameters: keystore location
Parameters: sigalg algorithm
Parameters: storepass password
Parameters: storetype type
Parameters: validity days valid
Throws: BuildException If not an Integer
Parameters: verbose verbose or not