blob: e1e4da1be2ab183bbb26a50edcb52d5a82de90d5 [file] [log] [blame]
/*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opencord.aaa.api;
import org.opencord.aaa.PacketCustomizer;
/**
* Service API for interacting with the AAA application.
*/
public interface AaaService {
/**
* Adds the specified listener for authentication events.
*
* @param listener the listener
*/
void addListener(AaaListener listener);
/**
* Removes the specified listener for authentication events.
*
* @param listener the listener
*/
void removeListener(AaaListener listener);
// TODO: need to provide method to report current status
// for each state machine: {ConnectPoint, StateMachine.currentState}
/**
* Registers a packet customizer with AAA, to be used to customize
* packets issued to and from the RADIUS server.
*
* @param customizer the customizer to register
*/
void registerPacketCustomizer(PacketCustomizer customizer);
/**
* Unregisters the given packet customizer from AAA.
* <p>
* Note: AAA will revert to a default customizer, that does no
* customization of the packets.
*
* @param customizer the customizer to unregister
*/
void unregisterPacketCustomizer(PacketCustomizer customizer);
}