1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.context.notification; |
12 | |
|
13 | |
import org.mule.api.context.notification.ServerNotification; |
14 | |
import org.mule.api.security.SecurityException; |
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
public class SecurityNotification extends ServerNotification |
20 | |
{ |
21 | |
|
22 | |
|
23 | |
|
24 | |
private static final long serialVersionUID = 5951835321289699941L; |
25 | |
|
26 | |
public static final int SECURITY_AUTHENTICATION_FAILED = SECURITY_EVENT_ACTION_START_RANGE + 1; |
27 | |
|
28 | |
static |
29 | |
{ |
30 | 0 | registerAction("authentication failed", SECURITY_AUTHENTICATION_FAILED); |
31 | 0 | } |
32 | |
|
33 | |
public SecurityNotification(SecurityException message, int action) |
34 | |
{ |
35 | 0 | super(message.getDetailedMessage(), action); |
36 | 0 | resourceIdentifier = message.getClass().getName(); |
37 | 0 | } |
38 | |
|
39 | |
@Override |
40 | |
public String getType() |
41 | |
{ |
42 | 0 | return TYPE_WARNING; |
43 | |
} |
44 | |
} |