org.kohsuke.maven.pgp.loaders
Class KeyFileLoader

java.lang.Object
  extended by org.kohsuke.maven.pgp.SecretKeyLoader
      extended by 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

Constructor Summary
KeyFileLoader()
           
 
Method Summary
 org.bouncycastle.openpgp.PGPSecretKey load(PgpMojo mojo, String keyFile)
           
 
Methods inherited from class org.kohsuke.maven.pgp.SecretKeyLoader
parseQueryParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFileLoader

public KeyFileLoader()
Method Detail

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.