1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.umo.security; |
12 | |
|
13 | |
import org.mule.umo.UMOEncryptionStrategy; |
14 | |
import org.mule.umo.lifecycle.Initialisable; |
15 | |
|
16 | |
import java.util.List; |
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
public interface UMOSecurityManager extends Initialisable |
27 | |
{ |
28 | |
UMOAuthentication authenticate(UMOAuthentication authentication) |
29 | |
throws SecurityException, SecurityProviderNotFoundException; |
30 | |
|
31 | |
void addProvider(UMOSecurityProvider provider); |
32 | |
|
33 | |
UMOSecurityProvider getProvider(String name); |
34 | |
|
35 | |
UMOSecurityProvider removeProvider(String name); |
36 | |
|
37 | |
List getProviders(); |
38 | |
|
39 | |
void setProviders(List providers); |
40 | |
|
41 | |
UMOSecurityContext createSecurityContext(UMOAuthentication authentication) |
42 | |
throws UnknownAuthenticationTypeException; |
43 | |
|
44 | |
UMOEncryptionStrategy getEncryptionStrategy(String name); |
45 | |
|
46 | |
void addEncryptionStrategy(String name, UMOEncryptionStrategy strategy); |
47 | |
|
48 | |
UMOEncryptionStrategy removeEncryptionStrategy(String name); |
49 | |
} |