Package cryptix.pki

Examples of cryptix.pki.CertificateBuilder


            PrivateKey privkey = kp.getPrivate();
            PrincipalBuilder princbuilder =
                PrincipalBuilder.getInstance("OpenPGP/UserID");
            Principal userid =
                princbuilder.build(name + " <"+jid+">");
            CertificateBuilder certbuilder =
                CertificateBuilder.getInstance("OpenPGP/Self");
            Certificate cert = certbuilder.build(pubkey, userid, privkey, sr);
            complexPublicKey.addCertificate(cert);
            complexPrivateKey.addCertificate(cert);
            complexPrivateKey.addPrivateKey(privkey, pubkey,
                passPhrase, sr);
       
View Full Code Here

TOP

Related Classes of cryptix.pki.CertificateBuilder

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.