Package org.springframework.roo.felix.pgp

Examples of org.springframework.roo.felix.pgp.SignatureDecision


        // trusted by the user
        InputStream resource = null;
        InputStream signature = null;
        try {
            signature = new FileInputStream(ascUrlFile);
            final SignatureDecision decision = pgpService
                    .isSignatureAcceptable(signature);
            if (!decision.isSignatureAcceptable()) {
                LOGGER.log(Level.SEVERE,
                        "Download URL '" + resourceUrl.toExternalForm()
                                + "' failed");
                LOGGER.log(
                        Level.SEVERE,
                        "This resource was signed with PGP key ID '"
                                + decision.getSignatureAsHex()
                                + "', which is not currently trusted");
                LOGGER.log(
                        Level.SEVERE,
                        "Use 'pgp key view' to view this key, 'pgp trust' to trust it, or 'pgp automatic trust' to trust any keys");
                throw new IOException("Download URL '"
View Full Code Here

TOP

Related Classes of org.springframework.roo.felix.pgp.SignatureDecision

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.