public class BasicKeystoreKeyStrategyTool extends Object
BasicKeystoreKeyStrategy
.Modifier and Type | Class and Description |
---|---|
static class |
BasicKeystoreKeyStrategyTool.FileConverter
Command line option conversion from String to File.
|
Constructor and Description |
---|
BasicKeystoreKeyStrategyTool()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
changeKey()
The main routine.
|
static void |
main(String[] args)
Command line entry point.
|
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.
|
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 setKeyAlias(@Nonnull @NotEmpty String alias)
alias
- the encryption key alias basepublic void setKeyCount(@Positive int count)
count
- number of keys to maintainpublic void setKeystoreType(@Nonnull @NotEmpty String type)
type
- keystore typepublic void setKeystoreFile(@Nonnull File file)
file
- keystore filepublic void setKeystorePassword(@Nullable String password)
password
- password for the keystorepublic void setVersionFile(@Nonnull File file)
file
- key versioning filepublic void changeKey() throws Exception
Exception
- if an error occursCopyright © 2016 JBoss by Red Hat. All rights reserved.