Coverage Report - org.mule.api.security.SecurityManager
 
Classes in this File Line Coverage Branch Coverage Complexity
SecurityManager
N/A
N/A
0
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.api.security;
 8  
 
 9  
 import org.mule.api.EncryptionStrategy;
 10  
 import org.mule.api.lifecycle.Initialisable;
 11  
 
 12  
 import java.util.Collection;
 13  
 
 14  
 /**
 15  
  * <code>SecurityManager</code> is responsible for managing one or more
 16  
  * security providers.
 17  
  */
 18  
 
 19  
 public interface SecurityManager extends Initialisable
 20  
 {
 21  
     
 22  
     Authentication authenticate(Authentication authentication)
 23  
         throws SecurityException, SecurityProviderNotFoundException;
 24  
 
 25  
     void addProvider(SecurityProvider provider);
 26  
 
 27  
     SecurityProvider getProvider(String name);
 28  
 
 29  
     SecurityProvider removeProvider(String name);
 30  
 
 31  
     Collection<SecurityProvider> getProviders();
 32  
 
 33  
     void setProviders(Collection<SecurityProvider> providers);
 34  
 
 35  
     SecurityContext createSecurityContext(Authentication authentication)
 36  
         throws UnknownAuthenticationTypeException;
 37  
 
 38  
     EncryptionStrategy getEncryptionStrategy(String name);
 39  
 
 40  
     void addEncryptionStrategy(EncryptionStrategy strategy);
 41  
 
 42  
     EncryptionStrategy removeEncryptionStrategy(String name);
 43  
 
 44  
     Collection<EncryptionStrategy> getEncryptionStrategies();
 45  
 
 46  
     void setEncryptionStrategies(Collection<EncryptionStrategy> strategies);
 47  
 
 48  
 }