org.kohsuke.maven.pgp
Class PassphraseLoader

java.lang.Object
  extended by org.kohsuke.maven.pgp.PassphraseLoader
Direct Known Subclasses:
FilePassPhraseLoader, GpgAgentPassPhraseLoader, LiteralPassPhraseLoader

public abstract class PassphraseLoader
extends Object

Loads a pass-phrase for the specified key.

Implementations should be plexus components, and its role hint is matched against the passphrase loader configuration parameter's scheme portion.

Author:
Kohsuke Kawaguchi

Constructor Summary
PassphraseLoader()
           
 
Method Summary
abstract  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

PassphraseLoader

public PassphraseLoader()
Method Detail

load

public abstract String load(PgpMojo mojo,
                            org.bouncycastle.openpgp.PGPSecretKey secretKey,
                            String specifier)
                     throws IOException,
                            org.apache.maven.plugin.MojoExecutionException
Obtains the pass-phrase.

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.