Distribute authentication state amongst the cluster
Change-Id: I63f36b3e2e5830241a2cb4e1c084d9e214995d2b
diff --git a/api/src/main/java/org/opencord/aaa/AuthenticationEvent.java b/api/src/main/java/org/opencord/aaa/AuthenticationEvent.java
index 87054c0..580e10c 100644
--- a/api/src/main/java/org/opencord/aaa/AuthenticationEvent.java
+++ b/api/src/main/java/org/opencord/aaa/AuthenticationEvent.java
@@ -55,6 +55,8 @@
TIMEOUT
}
+ private AuthenticationRecord authRecord;
+
/**
* Creates a new authentication event.
*
@@ -65,4 +67,25 @@
super(type, connectPoint);
}
+ /**
+ * Creates a new authentication event.
+ *
+ * @param type event type
+ * @param connectPoint port
+ * @param record information about the authentication state
+ */
+ public AuthenticationEvent(Type type, ConnectPoint connectPoint, AuthenticationRecord record) {
+ super(type, connectPoint);
+ this.authRecord = record;
+ }
+
+ /**
+ * Gets information about the authentication state.
+ *
+ * @return authentication record
+ */
+ public AuthenticationRecord authenticationRecord() {
+ return this.authRecord;
+ }
+
}