org.kohsuke.maven.pgp
Class SecretKeyLoader
java.lang.Object
org.kohsuke.maven.pgp.SecretKeyLoader
- Direct Known Subclasses:
- KeyFileLoader, KeyRingLoader
public abstract class SecretKeyLoader
- extends Object
Loads the secret key (a public key/private key pair) to generate a signature with.
Implementations should be plexus components, and its role hint is
matched against the passphrase loader configuration parameter's scheme portion.
- Author:
- Kohsuke Kawaguchi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecretKeyLoader
public SecretKeyLoader()
load
public abstract org.bouncycastle.openpgp.PGPSecretKey load(PgpMojo mojo,
String specifier)
throws IOException,
org.apache.maven.plugin.MojoExecutionException
- Parameters:
mojo - Mojo that's driving the execution.specifier - The secretkey loader parameter specified to PgpMojo, except the first scheme part.
If the loader needs to take additional parameters, it should do so from this string.
- Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
parseQueryParameters
protected final Map<String,String> parseQueryParameters(String specifier)
- Parses "a=b&c=d&..." into a map.
Useful for creating a structure in the specifier argument to the load method.
Copyright © 2011. All Rights Reserved.