Class BasicKeystoreKeyStrategyTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.shibboleth.idp.installer.ant.impl.BasicKeystoreKeyStrategyTask
- All Implemented Interfaces:
Cloneable
public class BasicKeystoreKeyStrategyTask
extends org.apache.tools.ant.Task
Wrapper around
BasicKeystoreKeyStrategyTool
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicKeystoreKeyStrategyTool
encapsulatedBasicKeystoreKeyStrategyTool
.Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
void
setKeyAlias
(String alias) Set the encryption key alias base name.void
setKeyCount
(int count) Set the number of keys to maintain.void
setKeySize
(int size) Set the size of the generated key.void
setKeystoreFile
(File file) Set the keystore file to create or modify.void
setKeystorePassword
(String password) Set the password for the 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
setVersionFile
(File file) Set the key versioning file to create or modify.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
tool
encapsulatedBasicKeystoreKeyStrategyTool
.
-
-
Constructor Details
-
BasicKeystoreKeyStrategyTask
public BasicKeystoreKeyStrategyTask()Constructor.
-
-
Method Details
-
setKeyType
Set the type of key that will be generated. Defaults to AES.- Parameters:
type
- type of key that will be generated
-
setKeySize
Set the size of the generated key. Defaults to 128- Parameters:
size
- size of the generated key
-
setKeyAlias
Set the encryption key alias base name.- Parameters:
alias
- the encryption key alias base
-
setKeyCount
Set the number of keys to maintain. Defaults to 3.- Parameters:
count
- number of keys to maintain
-
setKeystoreType
Set the type of keystore to create. Defaults to JCEKS.- Parameters:
type
- keystore type
-
setKeystoreFile
Set the keystore file to create or modify.- Parameters:
file
- keystore file
-
setKeystorePassword
Set the password for the keystore.- Parameters:
password
- password for the keystore
-
setVersionFile
Set the key versioning file to create or modify.- Parameters:
file
- key versioning file
-
execute
public void execute()- Overrides:
execute
in classorg.apache.tools.ant.Task
-