Class SecretKeyService
java.lang.Object
org.codehaus.mojo.keytool.services.SecretKeyService
Service for secret key operations using Java KeyStore API.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SecretKeyService
public SecretKeyService()
-
-
Method Details
-
generateSecretKey
public void generateSecretKey(File keystore, String storetype, String storepass, String alias, String keyalg, String keysize, String keypass) throws org.apache.maven.plugin.MojoExecutionException Generates a secret key and stores it in the keystore.- Parameters:
keystore- keystore locationstoretype- keystore type (defaults to KeyStore.getDefaultType() if null)storepass- keystore passwordalias- key aliaskeyalg- key algorithm (e.g., "AES", "DES", "DESede")keysize- key size in bits (e.g., "128", "256")keypass- key password (defaults to storepass if null)- Throws:
org.apache.maven.plugin.MojoExecutionException- if operation fails
-