org.kohsuke.maven.pgp.loaders
Class KeyFileLoader
java.lang.Object
org.kohsuke.maven.pgp.SecretKeyLoader
org.kohsuke.maven.pgp.loaders.KeyFileLoader
@Component(role=SecretKeyLoader.class,
hint="keyfile")
public class KeyFileLoader- extends SecretKeyLoader
Loads PGP secret key from the exported key file,
which normally ends with the ".asc" extension and has
a "-----BEGIN PGP PRIVATE KEY BLOCK-----" header.
- Author:
- Kohsuke Kawaguchi
|
Method Summary |
org.bouncycastle.openpgp.PGPSecretKey |
load(PgpMojo mojo,
String keyFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyFileLoader
public KeyFileLoader()
load
public org.bouncycastle.openpgp.PGPSecretKey load(PgpMojo mojo,
String keyFile)
throws IOException
- Specified by:
load in class SecretKeyLoader
- Parameters:
mojo - Mojo that's driving the execution.keyFile - 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
Copyright © 2011. All Rights Reserved.