org.kohsuke.maven.pgp.loaders
Class GpgAgentPassPhraseLoader
java.lang.Object
org.kohsuke.maven.pgp.PassphraseLoader
org.kohsuke.maven.pgp.loaders.GpgAgentPassPhraseLoader
@Component(role=PassphraseLoader.class,
hint="gpg-agent")
public class GpgAgentPassPhraseLoader- extends PassphraseLoader
- Author:
- Kohsuke Kawaguchi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GpgAgentPassPhraseLoader
public GpgAgentPassPhraseLoader()
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.