Package com.jamierf.dropwizard.debpkg.config

Examples of com.jamierf.dropwizard.debpkg.config.PgpConfiguration


        }

        debMaker.setCompression(COMPRESSION.toString());

        if (pgpConfiguration.isPresent()) {
            final PgpConfiguration pgp = pgpConfiguration.get();
            log.info(String.format("Signing package with PGP key: %s", pgp.getAlias()));

            debMaker.setSignPackage(true);
            debMaker.setKey(pgp.getAlias());
            debMaker.setKeyring(pgp.getKeyring());
            debMaker.setPassphrase(pgp.getPassphrase());
        }
        else {
            log.warn("Creating unsigned package");
        }
View Full Code Here


        final File keyring = temporaryFolder.newFile();
        Resources.asByteSource(PackageBuilderTest.class.getResource("private.asc")).copyTo(Files.asByteSink(keyring));

        builder = new PackageBuilder(NAME, DESCRIPTION, URI.create("http://www.example.org"), LOG, Optional.of(
                new PgpConfiguration().setAlias(PGP_ALIAS).setKeyring(keyring).setPassphrase(PGP_PASSWORD)
        ));
    }
View Full Code Here

TOP

Related Classes of com.jamierf.dropwizard.debpkg.config.PgpConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.