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