2 * ============LICENSE_START==========================================
3 * ===================================================================
4 * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
5 * ===================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * ============LICENSE_END============================================
19 * ECOMP and OpenECOMP are trademarks
20 * and service marks of AT&T Intellectual Property.
24 package org.openecomp.mso.cloud.authentication.models;
26 import org.codehaus.jackson.annotate.JsonProperty;
27 import org.codehaus.jackson.map.annotate.JsonRootName;
28 import com.woorea.openstack.keystone.model.Authentication;
31 public class RackspaceAuthentication extends Authentication {
33 private static final long serialVersionUID = 5451283386875662918L;
35 public static final class Token {
37 private String username;
38 private String apiKey;
41 * @return the username
43 public String getUsername() {
47 * @param username the username to set
49 public void setUsername(String username) {
50 this.username = username;
55 public String getApiKey() {
59 * @param apiKey the apiKey to set
61 public void setApiKey(String apiKey) {
66 @JsonProperty("RAX-KSKEY:apiKeyCredentials")
67 private Token token = new Token();
69 public RackspaceAuthentication (String username, String apiKey) {
70 this.token.username = username;
71 this.token.apiKey = apiKey;
78 public Token getToken() {
83 * @param token the token to set
85 public void setToken(Token token) {