blob: 87054c0c34b49f28c3468457be186ae444cefb83 [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
19import org.onosproject.event.AbstractEvent;
20import org.onosproject.net.ConnectPoint;
21
22/**
23 * Event indicating the authentication state of a port has changed.
24 */
25public class AuthenticationEvent extends
26 AbstractEvent<AuthenticationEvent.Type, ConnectPoint> {
27
28 /**
29 * Authentication event type.
30 */
31 public enum Type {
32 /**
33 * Supplicant has started authentication on a port.
34 */
35 STARTED,
36
37 /**
38 * Supplicant has requested authentication on a port.
39 */
40 REQUESTED,
41
42 /**
43 * Authentication request was approved.
44 */
45 APPROVED,
46
47 /**
48 * Authentication request was denied.
49 */
Jonathan Hart612651f2019-11-25 09:21:43 -080050 DENIED,
51
52 /**
53 * Authentication flow timed out.
54 */
55 TIMEOUT
Jonathan Hart5db44532018-07-12 18:13:54 -070056 }
57
58 /**
59 * Creates a new authentication event.
60 *
61 * @param type event type
62 * @param connectPoint port
63 */
64 public AuthenticationEvent(Type type, ConnectPoint connectPoint) {
65 super(type, connectPoint);
66 }
67
68}