2 * ============LICENSE_START=======================================================
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 * ============LICENSE_END=========================================================
17 package com.woorea.openstack.keystone.model.authentication;
19 import org.codehaus.jackson.map.annotate.JsonRootName;
21 import com.woorea.openstack.keystone.model.Authentication;
24 public class UsernamePassword extends Authentication {
26 public static final class PasswordCredentials {
28 private String username;
30 private String password;
33 * @return the username
35 public String getUsername() {
40 * @param username the username to set
42 public void setUsername(String username) {
43 this.username = username;
47 * @return the password
49 public String getPassword() {
54 * @param password the password to set
56 public void setPassword(String password) {
57 this.password = password;
62 private PasswordCredentials passwordCredentials = new PasswordCredentials();
64 public UsernamePassword() {
68 public UsernamePassword(String username, String password) {
69 passwordCredentials.setUsername(username);
70 passwordCredentials.setPassword(password);
74 * @return the passwordCredentials
76 public PasswordCredentials getPasswordCredentials() {
77 return passwordCredentials;
81 * @param passwordCredentials the passwordCredentials to set
83 public void setPasswordCredentials(PasswordCredentials passwordCredentials) {
84 this.passwordCredentials = passwordCredentials;