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  
11  public class PGPCryptInfo
12  {
13      private PGPPublicKey publicKey;
14      private boolean signRequested;
15  
16      public PGPCryptInfo(PGPPublicKey publicKey, boolean signRequested)
17      {
18          super();
19  
20          this.setPublicKey(publicKey);
21          this.setSignRequested(signRequested);
22      }
23  
24      public PGPPublicKey getPublicKey()
25      {
26          return publicKey;
27      }
28  
29      public void setPublicKey(PGPPublicKey publicKey)
30      {
31          this.publicKey = publicKey;
32      }
33  
34      public boolean isSignRequested()
35      {
36          return signRequested;
37      }
38  
39      public void setSignRequested(boolean signRequested)
40      {
41          this.signRequested = signRequested;
42      }
43  }