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.JsonIgnore;
27 import org.codehaus.jackson.annotate.JsonProperty;
28 import org.codehaus.jackson.map.annotate.JsonRootName;
29 import com.woorea.openstack.keystone.model.Authentication;
32 public class RackspaceAuthentication extends Authentication {
37 private static final long serialVersionUID = 5451283386875662918L;
40 private String tenantId;
43 private String tenantName;
45 public static final class Token {
47 private String username;
48 private String apiKey;
51 * @return the username
53 public String getUsername() {
57 * @param username the username to set
59 public void setUsername(String username) {
60 this.username = username;
65 public String getApiKey() {
69 * @param apiKey the apiKey to set
71 public void setApiKey(String apiKey) {
76 @JsonProperty("RAX-KSKEY:apiKeyCredentials")
77 private Token token = new Token();
79 public RackspaceAuthentication (String username, String apiKey) {
80 this.token.username = username;
81 this.token.apiKey = apiKey;
88 public Token getToken() {
93 * @param token the token to set
95 public void setToken(Token token) {