KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > umo > security > UMOSecurityManager


1 /*
2  * $Id: UMOSecurityManager.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
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 JavaDoc;
17
18 /**
19  * <code>UMOSecurityManager</code> is responsible for managing a one or more
20  * security providers.
21  *
22  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
23  * @version $Revision: 3798 $
24  */

25
26 public interface UMOSecurityManager extends Initialisable
27 {
28     UMOAuthentication authenticate(UMOAuthentication authentication)
29         throws SecurityException JavaDoc, SecurityProviderNotFoundException;
30
31     void addProvider(UMOSecurityProvider provider);
32
33     UMOSecurityProvider getProvider(String JavaDoc name);
34
35     UMOSecurityProvider removeProvider(String JavaDoc name);
36
37     List JavaDoc getProviders();
38
39     void setProviders(List JavaDoc providers);
40
41     UMOSecurityContext createSecurityContext(UMOAuthentication authentication)
42         throws UnknownAuthenticationTypeException;
43
44     UMOEncryptionStrategy getEncryptionStrategy(String JavaDoc name);
45
46     void addEncryptionStrategy(String JavaDoc name, UMOEncryptionStrategy strategy);
47
48     UMOEncryptionStrategy removeEncryptionStrategy(String JavaDoc name);
49 }
50
Popular Tags