2 * Copyright (c) 2017 Kontron Canada 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
9 package org.opendaylight.aaa.datastore.mdsal;
11 import org.opendaylight.aaa.api.Authentication;
12 import org.opendaylight.aaa.api.TokenStore;
15 * Implementation of the mdsal AAA token store
17 public class MdsalTokenStore implements AutoCloseable, TokenStore {
19 private final long timeToLive;
21 public MdsalTokenStore(long timeToLive) {
22 this.timeToLive = timeToLive;
26 public void put(String token, Authentication auth) {
27 // TODO Auto-generated method stub
31 public Authentication get(String token) {
32 // TODO Auto-generated method stub
37 public boolean delete(String token) {
38 // TODO Auto-generated method stub
43 public long tokenExpiration() {
44 // TODO Auto-generated method stub
49 public void close() throws Exception {
50 // TODO Auto-generated method stub