Coverage Report - org.mule.umo.security.UMOSecurityManager
 
Classes in this File Line Coverage Branch Coverage Complexity
UMOSecurityManager
N/A
N/A
1
 
 1  
 /*
 2  
  * $Id: UMOSecurityManager.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 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 CPAL v1.0
 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;
 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: 7976 $
 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  
 }