Modifier and Type | Field and Description |
---|---|
protected List<String> |
args |
protected boolean |
defaultKeyring |
protected File |
homeDir |
protected boolean |
isInteractive |
protected String |
keyname |
protected String |
lockMode |
protected String |
passphrase |
protected String |
publicKeyring |
protected String |
secretKeyring |
static String |
SIGNATURE_EXTENSION |
protected boolean |
useAgent |
Constructor and Description |
---|
AbstractGpgSigner() |
Modifier and Type | Method and Description |
---|---|
File |
generateSignatureForArtifact(File file)
Create a detached signature file for the provided file.
|
protected abstract void |
generateSignatureForFile(File file,
File signature)
Generate the detached signature file for the provided file.
|
Log |
getLog() |
String |
getPassphrase(org.apache.maven.project.MavenProject project) |
void |
setArgs(List<String> args) |
void |
setBaseDirectory(File out) |
void |
setBuildDirectory(File out) |
void |
setDefaultKeyring(boolean enabled) |
void |
setHomeDirectory(File homeDirectory) |
void |
setInteractive(boolean b) |
void |
setKeyName(String s) |
void |
setLockMode(String lockMode) |
void |
setLog(Log log) |
void |
setOutputDirectory(File out) |
void |
setPassPhrase(String s) |
void |
setPublicKeyring(String path) |
void |
setSecretKeyring(String path) |
void |
setUseAgent(boolean b) |
public static final String SIGNATURE_EXTENSION
protected boolean useAgent
protected boolean isInteractive
protected boolean defaultKeyring
protected String keyname
protected String passphrase
protected File homeDir
protected String secretKeyring
protected String publicKeyring
protected String lockMode
public Log getLog()
public void setInteractive(boolean b)
public void setLockMode(String lockMode)
public void setUseAgent(boolean b)
public void setDefaultKeyring(boolean enabled)
public void setKeyName(String s)
public void setLog(Log log)
public void setPassPhrase(String s)
public void setOutputDirectory(File out)
public void setBuildDirectory(File out)
public void setBaseDirectory(File out)
public void setHomeDirectory(File homeDirectory)
public void setSecretKeyring(String path)
public void setPublicKeyring(String path)
public File generateSignatureForArtifact(File file) throws MojoExecutionException
file
- The file to signMojoExecutionException
protected abstract void generateSignatureForFile(File file, File signature) throws MojoExecutionException
file
- The file to signsignature
- The file in which the generate signature will be putMojoExecutionException
public String getPassphrase(org.apache.maven.project.MavenProject project) throws IOException
IOException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.