2 * Copyright (c) 2017 Ericsson Inc. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.aaa.shiro.keystone.domain;
11 import java.util.ArrayList;
12 import java.util.List;
15 * This class represents a Keystone API v3 Token object.
17 public class KeystoneToken {
20 public KeystoneToken() {}
22 public KeystoneToken(Token theToken) {
26 public void setToken(Token theToken) {
30 public Token getToken() {
34 public static final class Token {
36 private List<Role> roles = new ArrayList<>();
40 public Token(List<Role> theRoles) {
41 roles.addAll(theRoles);
44 public void addRoles(List<Role> theRoles) {
45 roles.addAll(theRoles);
48 public List<Role> getRoles() {
52 public static final class Role {
59 public Role(String theRoleName, String theId) {
64 public void setName(String theRoleName) {
68 public String getName() {
72 public void setId(String theId) {
76 public String getId() {