blob: c47420330ab5c32aca929494dd2ee5aa558e1e08 [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
Jonathan Hart612651f2019-11-25 09:21:43 -080022import java.util.List;
23
Jonathan Hart5db44532018-07-12 18:13:54 -070024/**
Jonathan Hart612651f2019-11-25 09:21:43 -080025 * Service for interacting with authentication state.
Jonathan Hart5db44532018-07-12 18:13:54 -070026 */
27public interface AuthenticationService extends
28 ListenerService<AuthenticationEvent, AuthenticationEventListener> {
Jonathan Hart612651f2019-11-25 09:21:43 -080029
30 /**
31 * Gets records of authentications that are completed or in progress.
32 *
33 * @return list of authentication records
34 */
35 List<AuthenticationRecord> getAuthenticationRecords();
36
37 /**
38 * Removes an authentication record.
39 *
40 * @param mac MAC address of record to remove
41 * @return true if a record was remove, otherwise false
42 */
43 boolean removeAuthenticationStateByMac(MacAddress mac);
44
Jonathan Hart5db44532018-07-12 18:13:54 -070045}