All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anrisoftware.sscontrol.scripts.signrepo.SignRepoFactory Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2014-2015 Erwin Müller 
 *
 * This file is part of sscontrol-scripts-unix.
 *
 * sscontrol-scripts-unix is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * sscontrol-scripts-unix is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with sscontrol-scripts-unix. If not, see .
 */
package com.anrisoftware.sscontrol.scripts.signrepo;

import java.io.File;
import java.net.URL;
import java.util.Map;

import com.anrisoftware.globalpom.threads.api.Threads;

/**
 * Factory to create the repository signer.
 *
 * @author Erwin Mueller, [email protected]
 * @since 1.0
 */
public interface SignRepoFactory {

    /**
     * Creates the repository signer.
     *
     * @param args
     *            the {@link Map} arguments:
     *            
    *
  • {@code command} the sign repository command, for example * {@code "/usr/bin/apt-key".} * *
  • {@code key} the repository key {@link URL} resource. * *
  • {@code system} the system name, for example * {@code "ubuntu"}. * *
  • {@code tmp} the temporary {@link File} directory. *
* * @param parent * the {@link Object} parent script. * * @param threads * the {@link Threads} pool. * * @return the {@link SignRepo}. */ SignRepo create(Map args, Object parent, Threads threads); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy