blob: 4eb649b210a0a66154893e809cde33f6381b4229 [file] [log] [blame]
Jonathan Hart5db44532018-07-12 18:13:54 -07001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.opencord.aaa;
18
Jonathan Hart612651f2019-11-25 09:21:43 -080019import org.onlab.packet.MacAddress;
Jonathan Hart5db44532018-07-12 18:13:54 -070020import org.onosproject.event.ListenerService;
21
22/**
Jonathan Hart612651f2019-11-25 09:21:43 -080023 * Service for interacting with authentication state.
Jonathan Hart5db44532018-07-12 18:13:54 -070024 */
25public interface AuthenticationService extends
26 ListenerService<AuthenticationEvent, AuthenticationEventListener> {
Jonathan Hart612651f2019-11-25 09:21:43 -080027
28 /**
29 * Gets records of authentications that are completed or in progress.
30 *
31 * @return list of authentication records
32 */
Jonathan Hart9d1ce802020-01-28 10:45:08 -080033 Iterable<AuthenticationRecord> getAuthenticationRecords();
Jonathan Hart612651f2019-11-25 09:21:43 -080034
35 /**
36 * Removes an authentication record.
37 *
38 * @param mac MAC address of record to remove
Jonathan Hart9d1ce802020-01-28 10:45:08 -080039 * @return true if a record was removed, otherwise false
Jonathan Hart612651f2019-11-25 09:21:43 -080040 */
41 boolean removeAuthenticationStateByMac(MacAddress mac);
42
Shubham Sharma544ffa22020-02-13 06:41:02 +000043 /**
44 * Gets the machine stats based on machine session id.
45 *
46 * @param sessionID SessionID of machine
47 * @return AaaSupplicantMachineStats object
48 */
49 AaaSupplicantMachineStats getSupplicantMachineStats(String sessionID);
50
Jonathan Hart5db44532018-07-12 18:13:54 -070051}