blob: e1e4da1be2ab183bbb26a50edcb52d5a82de90d5 [file] [log] [blame]
Simon Huntce55af52017-10-24 16:57:30 -07001/*
2 * Copyright 2017-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 */
16package org.opencord.aaa.api;
17
18
19import org.opencord.aaa.PacketCustomizer;
20
21/**
22 * Service API for interacting with the AAA application.
23 */
24public interface AaaService {
25
26 /**
27 * Adds the specified listener for authentication events.
28 *
29 * @param listener the listener
30 */
31 void addListener(AaaListener listener);
32
33 /**
34 * Removes the specified listener for authentication events.
35 *
36 * @param listener the listener
37 */
38 void removeListener(AaaListener listener);
39
40
41 // TODO: need to provide method to report current status
42 // for each state machine: {ConnectPoint, StateMachine.currentState}
43
44
45 /**
46 * Registers a packet customizer with AAA, to be used to customize
47 * packets issued to and from the RADIUS server.
48 *
49 * @param customizer the customizer to register
50 */
51 void registerPacketCustomizer(PacketCustomizer customizer);
52
53 /**
54 * Unregisters the given packet customizer from AAA.
55 * <p>
56 * Note: AAA will revert to a default customizer, that does no
57 * customization of the packets.
58 *
59 * @param customizer the customizer to unregister
60 */
61 void unregisterPacketCustomizer(PacketCustomizer customizer);
62
63}