3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.usermanager;
12 import java.io.Serializable;
13 import java.util.LinkedList;
14 import java.util.List;
16 import org.opendaylight.controller.sal.authorization.AuthResultEnum;
19 * The class describes AAA response status and payload data
21 public class AuthResponse implements Serializable {
22 private static final long serialVersionUID = 1L;
23 private List<String> data;
24 private AuthResultEnum status;
25 private AuthResultEnum authorStatus;
27 public AuthResponse() {
28 this.data = new LinkedList<String>();
29 this.status = AuthResultEnum.AUTH_NONE;
30 this.authorStatus = AuthResultEnum.AUTH_NONE;
33 public void setData(List<String> data) {
37 public void addData(String data) {
41 public List<String> getData() {
45 public void setStatus(AuthResultEnum status) {
49 public AuthResultEnum getStatus() {
53 public void setAuthorizationStatus(AuthResultEnum authorStatus) {
54 this.authorStatus = authorStatus;
57 public AuthResultEnum getAuthorizationStatus() {
61 public String toString() {
62 return ("\nReceived messages: " + data.toString() + "\nStatus: " + status);
65 public void resetData(String rolesData) {
66 // TODO Auto-generated method stub