org.kohsuke.maven.pgp.loaders
Class GpgAgentPassPhraseLoader

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

@Component(role=PassphraseLoader.class,
           hint="gpg-agent")
public class GpgAgentPassPhraseLoader
extends PassphraseLoader

Author:
Kohsuke Kawaguchi

Nested Class Summary
static interface GpgAgentPassPhraseLoader.LIBC
           
 class GpgAgentPassPhraseLoader.sockaddr_un
           
 
Constructor Summary
GpgAgentPassPhraseLoader()
           
 
Method Summary
 String getPassphrase(String socketFile, org.bouncycastle.openpgp.PGPSecretKey secretKey)
           
 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

GpgAgentPassPhraseLoader

public GpgAgentPassPhraseLoader()
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

getPassphrase

public String getPassphrase(String socketFile,
                            org.bouncycastle.openpgp.PGPSecretKey secretKey)
                     throws IOException,
                            org.apache.maven.plugin.MojoExecutionException
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011. All Rights Reserved.