public class SelfSignedCertificateGeneratorTask
extends org.apache.tools.ant.Task
SelfSignedCertificateGenerator.| Modifier and Type | Field and Description |
|---|---|
private SelfSignedCertificateGenerator |
generator
Our wrapped
SelfSignedCertificateGenerator. |
| Constructor and Description |
|---|
SelfSignedCertificateGeneratorTask()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
setCertificateAlg(String alg)
Set the certificate algorithm that will be used.
|
void |
setCertificateFile(File file)
Set the file to which the certificate will be written.
|
void |
setCertificateLifetime(int lifetime)
Set the number of years for which the certificate will be valid.
|
void |
setDNSSubjectAltNames(String altNames)
Set the optional DNS subject alt names.
|
void |
setHostName(String name)
Set the hostname that will appear in the certificate's DN.
|
void |
setKeySize(int size)
Set the size of the generated key.
|
void |
setKeystoreFile(File file)
Set the file to which the keystore will be written.
|
void |
setKeystorePassword(String password)
Set the password for the generated keystore.
|
void |
setKeystoreType(String type)
Set the type of keystore to create.
|
void |
setKeyType(String type)
Set the type of key that will be generated.
|
void |
setPrivateKeyFile(File file)
Set the file to which the private key will be written.
|
void |
setURISubjectAltNames(String subjectAltNames)
Set the optional URI subject alt names.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprivate SelfSignedCertificateGenerator generator
SelfSignedCertificateGenerator.public SelfSignedCertificateGeneratorTask()
public void setKeyType(@Nonnull@NotEmpty String type)
type - type of key that will be generatedpublic void setKeySize(@Positive int size)
size - size of the generated keypublic void setCertificateLifetime(@Positive int lifetime)
lifetime - number of years for which the certificate will be validpublic void setCertificateAlg(@Nonnull@NotEmpty String alg)
alg - certificate algorithmpublic void setHostName(@Nonnull@NotEmpty String name)
name - hostname that will appear in the certificate's DNpublic void setPrivateKeyFile(@Nullable File file)
file - file to which the private key will be writtenpublic void setCertificateFile(@Nullable File file)
file - file to which the certificate will be writtenpublic void setKeystoreType(@Nonnull@NotEmpty String type)
type - keystore typepublic void setKeystoreFile(@Nullable File file)
file - file to which the keystore will be writtenpublic void setKeystorePassword(@Nullable String password)
password - password for the generated keystorepublic void setDNSSubjectAltNames(@Nonnull@NonnullElements String altNames)
altNames - collection of subject alt names.public void setURISubjectAltNames(@Nonnull@NonnullElements String subjectAltNames)
subjectAltNames - collection of subject alt names.public void execute()
execute in class org.apache.tools.ant.TaskCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.