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.TaskWrapper aroundBasicKeystoreKeyStrategyTool.
-
-
Field Summary
Fields Modifier and Type Field Description private BasicKeystoreKeyStrategyTooltoolencapsulatedBasicKeystoreKeyStrategyTool.
-
Constructor Summary
Constructors Constructor Description BasicKeystoreKeyStrategyTask()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidsetKeyAlias(String alias)Set the encryption key alias base name.voidsetKeyCount(int count)Set the number of keys to maintain.voidsetKeySize(int size)Set the size of the generated key.voidsetKeystoreFile(File file)Set the keystore file to create or modify.voidsetKeystorePassword(String password)Set the password for the keystore.voidsetKeystoreType(String type)Set the type of keystore to create.voidsetKeyType(String type)Set the type of key that will be generated.voidsetVersionFile(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
-
-
-
-
Field Detail
-
tool
private BasicKeystoreKeyStrategyTool tool
encapsulatedBasicKeystoreKeyStrategyTool.
-
-
Method Detail
-
setKeyType
public void setKeyType(@Nonnull @NotEmpty String type)
Set the type of key that will be generated. Defaults to AES.- Parameters:
type- type of key that will be generated
-
setKeySize
public void setKeySize(@Positive int size)
Set the size of the generated key. Defaults to 128- Parameters:
size- size of the generated key
-
setKeyAlias
public void setKeyAlias(@Nonnull @NotEmpty String alias)
Set the encryption key alias base name.- Parameters:
alias- the encryption key alias base
-
setKeyCount
public void setKeyCount(@Positive int count)
Set the number of keys to maintain. Defaults to 3.- Parameters:
count- number of keys to maintain
-
setKeystoreType
public void setKeystoreType(@Nonnull @NotEmpty String type)
Set the type of keystore to create. Defaults to JCEKS.- Parameters:
type- keystore type
-
setKeystoreFile
public void setKeystoreFile(@Nonnull File file)Set the keystore file to create or modify.- Parameters:
file- keystore file
-
setKeystorePassword
public void setKeystorePassword(@Nullable String password)Set the password for the keystore.- Parameters:
password- password for the keystore
-
setVersionFile
public void setVersionFile(@Nonnull File file)Set the key versioning file to create or modify.- Parameters:
file- key versioning file
-
execute
public void execute()
- Overrides:
executein classorg.apache.tools.ant.Task
-
-