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 com.fasterxml.jackson.annotation.JsonIgnore;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonRootName;
29 import com.woorea.openstack.keystone.model.Authentication;
32 public class RackspaceAuthentication extends Authentication {
34 private static final long serialVersionUID = 5451283386875662918L;
36 public static final class Token {
38 private String username;
39 private String apiKey;
42 * @return the username
44 public String getUsername() {
48 * @param username the username to set
50 public void setUsername(String username) {
51 this.username = username;
56 public String getApiKey() {
60 * @param apiKey the apiKey to set
62 public void setApiKey(String apiKey) {
67 @JsonProperty("RAX-KSKEY:apiKeyCredentials")
68 private Token token = new Token();
70 public RackspaceAuthentication (String username, String apiKey) {
71 this.token.username = username;
72 this.token.apiKey = apiKey;
79 public Token getToken() {
84 * @param token the token to set
86 public void setToken(Token token) {