001/**
002 * Copyright 2005-2015 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krad.labs.encryption;
017
018import org.kuali.rice.krad.web.form.UifFormBase;
019
020/**
021 * Form for the encrypt/decrypt utility
022 *
023 * @author Kuali Rice Team (rice.collab@kuali.org)
024 */
025public class EncryptionForm extends UifFormBase {
026
027    private String encryptionServiceName;
028    private String input;
029    private String encryptedText;
030    private String decryptedText;
031
032    /**
033     * Gets the name of the encryption service that is being used
034     *
035     * @return encryption service name
036     */
037    public String getEncryptionServiceName() {
038        return encryptionServiceName;
039    }
040
041    public void setEncryptionServiceName(String encryptionServiceName) {
042        this.encryptionServiceName = encryptionServiceName;
043    }
044
045    /**
046     * Gets the input text to be encrypted/decrypted
047     *
048     * @return input text
049     */
050    public String getInput() {
051        return input;
052    }
053
054    public void setInput(String input) {
055        this.input = input;
056    }
057
058    /**
059     * Gets the resulting encrypted text
060     *
061     * @return encrypted text
062     */
063    public String getEncryptedText() {
064        return encryptedText;
065    }
066
067    public void setEncryptedText(String encryptedText) {
068        this.encryptedText = encryptedText;
069    }
070
071    /**
072     * Gets the resulting decrypted text
073     *
074     * @return decrypted text
075     */
076    public String getDecryptedText() {
077        return decryptedText;
078    }
079
080    public void setDecryptedText(String decryptedText) {
081        this.decryptedText = decryptedText;
082    }
083}