View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.labs.encryption;
17  
18  import org.kuali.rice.krad.web.form.UifFormBase;
19  
20  /**
21   * Form for the encrypt/decrypt utility
22   *
23   * @author Kuali Rice Team (rice.collab@kuali.org)
24   */
25  public class EncryptionForm extends UifFormBase {
26  
27      private String encryptionServiceName;
28      private String input;
29      private String encryptedText;
30      private String decryptedText;
31  
32      /**
33       * Gets the name of the encryption service that is being used
34       *
35       * @return encryption service name
36       */
37      public String getEncryptionServiceName() {
38          return encryptionServiceName;
39      }
40  
41      public void setEncryptionServiceName(String encryptionServiceName) {
42          this.encryptionServiceName = encryptionServiceName;
43      }
44  
45      /**
46       * Gets the input text to be encrypted/decrypted
47       *
48       * @return input text
49       */
50      public String getInput() {
51          return input;
52      }
53  
54      public void setInput(String input) {
55          this.input = input;
56      }
57  
58      /**
59       * Gets the resulting encrypted text
60       *
61       * @return encrypted text
62       */
63      public String getEncryptedText() {
64          return encryptedText;
65      }
66  
67      public void setEncryptedText(String encryptedText) {
68          this.encryptedText = encryptedText;
69      }
70  
71      /**
72       * Gets the resulting decrypted text
73       *
74       * @return decrypted text
75       */
76      public String getDecryptedText() {
77          return decryptedText;
78      }
79  
80      public void setDecryptedText(String decryptedText) {
81          this.decryptedText = decryptedText;
82      }
83  }