@Component(role=PassphraseLoader.class, hint="gpg-agent") public class GpgAgentPassPhraseLoader extends PassphraseLoader
Modifier and Type | Class and Description |
---|---|
static interface |
GpgAgentPassPhraseLoader.LIBC |
class |
GpgAgentPassPhraseLoader.sockaddr_un |
Constructor and Description |
---|
GpgAgentPassPhraseLoader() |
public String load(PgpMojo mojo, org.bouncycastle.openpgp.PGPSecretKey secretKey, String specifier) throws IOException, org.apache.maven.plugin.MojoExecutionException
PassphraseLoader
load
in class PassphraseLoader
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.IOException
org.apache.maven.plugin.MojoExecutionException
public String getPassphrase(String socketFile, org.bouncycastle.openpgp.PGPSecretKey secretKey) throws IOException, org.apache.maven.plugin.MojoExecutionException
IOException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2014. All Rights Reserved.