org.kohsuke.maven.pgp.loaders
Class FilePassPhraseLoader

java.lang.Object
  extended by org.kohsuke.maven.pgp.PassphraseLoader
      extended by org.kohsuke.maven.pgp.loaders.FilePassPhraseLoader

@Component(role=PassphraseLoader.class,
           hint="file")
public class FilePassPhraseLoader
extends PassphraseLoader

Loads a pass phrase from a file.

Author:
Kohsuke Kawaguchi

Constructor Summary
FilePassPhraseLoader()
           
 
Method Summary
 String load(PgpMojo mojo, org.bouncycastle.openpgp.PGPSecretKey secretKey, String specifier)
          Obtains the pass-phrase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePassPhraseLoader

public FilePassPhraseLoader()
Method Detail

load

public String load(PgpMojo mojo,
                   org.bouncycastle.openpgp.PGPSecretKey secretKey,
                   String specifier)
            throws IOException,
                   org.apache.maven.plugin.MojoExecutionException
Description copied from class: PassphraseLoader
Obtains the pass-phrase.

Specified by:
load in class PassphraseLoader
Parameters:
mojo - Mojo that's driving the execution.
secretKey - The key for which the pass-phrase is retrieved.
specifier - The pass phrase 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.
Returns:
the passphrase.
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011. All Rights Reserved.