ru.r2cloud.apt.GpgSigner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apt-man Show documentation
Show all versions of apt-man Show documentation
Library for managing APT repository
The newest version!
package ru.r2cloud.apt;
import java.io.IOException;
import ru.r2cloud.apt.model.Release;
public interface GpgSigner {
/**
* Sign Release file and save via provided {@link ru.r2cloud.apt.Transport}
*
* @param path - target path where to save signed file
* @param release - {@link ru.r2cloud.apt.model.Release} structure containing
* all required info
* @param clearsign - Format of signed file: clearsign - keep signature and
* input Release file together or just gpg signature
* @throws IOException - on any error
*/
void signAndSave(String path, Release release, boolean clearsign, Transport transport) throws IOException;
/**
* Validate signature
*
* @param path
* @param release
* @param clearsign
* @param transport
* @throws IOException
*/
boolean validate(String path, Release release, boolean clearsign, Transport transport) throws IOException, ResourceDoesNotExistException;
}