Package org.bouncycastle.openpgp.operator

Examples of org.bouncycastle.openpgp.operator.PGPContentSignerBuilder


        throw new IllegalArgumentException(
                "Can't find signing key in key ring.");
    }

    private PGPSignatureGenerator createPGPSignatureGenerator(final char[] keyPassPhrase) throws PGPException {
        final PGPContentSignerBuilder csBuilder = new JcaPGPContentSignerBuilder(key
                .getPublicKey().getAlgorithm(), hashAlgorithm);
        final PGPSignatureGenerator generator = new PGPSignatureGenerator(csBuilder);
        final PGPPrivateKey privateKey = extractPGPPrivateKey(keyPassPhrase);

        init(generator, privateKey);
View Full Code Here

TOP

Related Classes of org.bouncycastle.openpgp.operator.PGPContentSignerBuilder

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.