1package org.apache.archiva.redback.rest.api.model;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import javax.xml.bind.annotation.XmlRootElement;
22import java.io.Serializable;
2324/**25 * @author Olivier Lamy26 * @since 2.027 */28 @XmlRootElement( name = "loginRequest" )
29publicclassLoginRequest30implements Serializable
31 {
32private String username;
3334private String password;
3536publicLoginRequest()
37 {
38// no op39 }
4041publicLoginRequest( String username, String password )
42 {
43this.username = username;
44this.password = password;
45 }
4647public String getUsername()
48 {
49return username;
50 }
5152publicvoid setUsername( String username )
53 {
54this.username = username;
55 }
5657public String getPassword()
58 {
59return password;
60 }
6162publicvoid setPassword( String password )
63 {
64this.password = password;
65 }
6667 @Override
68public String toString()
69 {
70final StringBuilder sb = new StringBuilder();
71 sb.append( "LoginRequest" );
72 sb.append( "{username='" ).append( username ).append( '\'' );
73 sb.append( ", password='" ).append( password ).append( '\'' );
74 sb.append( '}' );
75return sb.toString();
76 }
77 }