Modifier and Type | Class and Description |
---|---|
static class |
GenerateKey.DistinguishedName
A class corresponding to the dname nested element.
|
static class |
GenerateKey.DnameParam
A DistinguishedName parameter.
|
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
GenerateKey() |
Modifier and Type | Method and Description |
---|---|
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.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
protected String alias
protected String dname
protected GenerateKey.DistinguishedName expandedDname
protected String keyalg
protected String keypass
protected int keysize
protected String keystore
protected String sigalg
protected String storepass
protected String storetype
protected int validity
protected boolean verbose
public GenerateKey.DistinguishedName createDname() throws BuildException
BuildException
- If specified more than once or dname
attribute is used.public void execute() throws BuildException
execute
in class Task
BuildException
- on errorpublic void setAlias(String alias)
alias
- alias to add underpublic void setDname(String dname)
dname
- distinguished namepublic void setKeyalg(String keyalg)
keyalg
- algorithmpublic void setKeypass(String keypass)
keypass
- passwordpublic void setKeysize(String keysize) throws BuildException
keysize
- size of keyBuildException
- If not an Integerpublic void setKeystore(String keystore)
keystore
- locationpublic void setSigalg(String sigalg)
sigalg
- algorithmpublic void setStorepass(String storepass)
storepass
- passwordpublic void setStoretype(String storetype)
storetype
- typepublic void setValidity(String validity) throws BuildException
validity
- days validBuildException
- If not an Integerpublic void setVerbose(boolean verbose)
verbose
- verbose or not