2 * Copyright (c) 2018 Inocybe Technologies and others. 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
8 package org.opendaylight.aaa.tokenauthrealm.auth;
10 import com.google.common.collect.ImmutableList;
11 import java.util.Collection;
12 import org.opendaylight.aaa.api.TokenAuth;
15 * Holds TokenAuth instances.
17 * @author Thomas Pantelis
19 public class TokenAuthenticators {
20 private final Collection<TokenAuth> tokenAuthCollection;
22 public TokenAuthenticators(TokenAuth... tokenAuths) {
23 tokenAuthCollection = new ImmutableList.Builder<TokenAuth>().add(tokenAuths).build();
26 public Collection<TokenAuth> getTokenAuthCollection() {
27 return tokenAuthCollection;