org.kohsuke.maven.pgp.loaders
Class LiteralPassPhraseLoader

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

@Component(role=PassphraseLoader.class,
           hint="literal")
public class LiteralPassPhraseLoader
extends PassphraseLoader

Specifies a pass phrase directly as literal.

Author:
Kohsuke Kawaguchi

Constructor Summary
LiteralPassPhraseLoader()
           
 
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

LiteralPassPhraseLoader

public LiteralPassPhraseLoader()
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.