Package com.wesabe.grendel.openpgp

Examples of com.wesabe.grendel.openpgp.KeySetGenerator.generate()


    private static KeySet keySet;

    @BeforeClass
    public static void setupOnce() throws Exception {
      final KeySetGenerator generator = new KeySetGenerator(new SecureRandom());
      keySet = generator.generate("Sample User <sample@example.com", "hello there".toCharArray());
    }

    @Test
    public void itHasAMasterKeyWithTheGivenUserID() throws Exception {
      assertThat(keySet.getMasterKey().getUserID()).isEqualTo("Sample User <sample@example.com");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.