001/*
002 * Syncany, www.syncany.org
003 * Copyright (C) 2011-2016 Philipp C. Heckel <philipp.heckel@gmail.com> 
004 *
005 * This program is free software: you can redistribute it and/or modify
006 * it under the terms of the GNU General Public License as published by
007 * the Free Software Foundation, either version 3 of the License, or
008 * (at your option) any later version.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013 * GNU General Public License for more details.
014 *
015 * You should have received a copy of the GNU General Public License
016 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
017 */
018package org.syncany.config.to;
019
020import org.simpleframework.xml.Element;
021import org.simpleframework.xml.Root;
022
023/**
024 * This class is the access object to user-password pairs in XML.
025 * 
026 * <p>It uses the Simple framework for XML serialization, and its corresponding
027 * annotation-based configuration.
028 *
029 * @see <a href="http://simple.sourceforge.net/">Simple framework</a>
030 * @author Pim Otte
031 */
032@Root(strict = false)
033public class UserTO {
034        @Element(required = true)
035        private String username;
036
037        @Element(required = true)
038        private String password;
039
040        public String getUsername() {
041                return username;
042        }
043
044        public void setUsername(String username) {
045                this.username = username;
046        }
047
048        public String getPassword() {
049                return password;
050        }
051
052        public void setPassword(String password) {
053                this.password = password;
054        }
055}