View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.pgp;
8   
9   import org.bouncycastle.openpgp.PGPPublicKey;
10  import org.bouncycastle.openpgp.PGPSecretKey;
11  import org.junit.Test;
12  
13  import static org.junit.Assert.assertNotNull;
14  
15  public class PGPKeyRingTestCase extends AbstractEncryptionStrategyTestCase
16  {
17      @Test
18      public void testClientKey()
19      {
20          PGPPublicKey clientKey = keyManager.getPublicKey("Mule client <mule_client@mule.com>");
21          assertNotNull(clientKey);
22      }
23  
24      @Test
25      public void testServerKey()
26      {
27          PGPSecretKey serverKey = keyManager.getSecretKey();
28          assertNotNull(serverKey);
29      }
30  }