First classes added to AAA API.

Implement equals() / hashCode() in AaaEvent.

Change-Id: Id2a9a18d0a49e8962a27904470bee56375c4888a
diff --git a/src/main/java/org/opencord/aaa/api/AaaService.java b/src/main/java/org/opencord/aaa/api/AaaService.java
new file mode 100644
index 0000000..e1e4da1
--- /dev/null
+++ b/src/main/java/org/opencord/aaa/api/AaaService.java
@@ -0,0 +1,63 @@
+/*
+ * 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);
+
+}