Split out datastore implementation from aaa-shiro
[aaa.git] / aaa-tokenauthrealm / src / main / java / org / opendaylight / aaa / tokenauthrealm / auth / TokenAuthenticators.java
1 /*
2  * Copyright (c) 2018 Inocybe Technologies and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.aaa.tokenauthrealm.auth;
9
10 import com.google.common.collect.ImmutableList;
11 import java.util.Collection;
12 import org.opendaylight.aaa.api.TokenAuth;
13
14 /**
15  * Holds TokenAuth instances.
16  *
17  * @author Thomas Pantelis
18  */
19 public class TokenAuthenticators {
20     private final Collection<TokenAuth> tokenAuthCollection;
21
22     public TokenAuthenticators(TokenAuth... tokenAuths) {
23         tokenAuthCollection = new ImmutableList.Builder<TokenAuth>().add(tokenAuths).build();
24     }
25
26     public Collection<TokenAuth> getTokenAuthCollection() {
27         return tokenAuthCollection;
28     }
29 }