Coverage Report - org.mule.module.jaas.config.JaasNamespaceHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
JaasNamespaceHandler
0%
0/6
N/A
1
 
 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.module.jaas.config;
 8  
 
 9  
 import org.mule.api.config.MuleProperties;
 10  
 import org.mule.config.spring.parsers.generic.ChildDefinitionParser;
 11  
 import org.mule.config.spring.parsers.generic.NamedDefinitionParser;
 12  
 import org.mule.config.spring.parsers.specific.SecurityFilterDefinitionParser;
 13  
 import org.mule.module.jaas.JaasSimpleAuthenticationProvider;
 14  
 import org.mule.module.jaas.filters.JaasSecurityFilter;
 15  
 import org.mule.security.PasswordBasedEncryptionStrategy;
 16  
 
 17  
 import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
 18  
 
 19  0
 public class JaasNamespaceHandler extends NamespaceHandlerSupport
 20  
 {
 21  
     public void init()
 22  
     {
 23  0
         registerBeanDefinitionParser("security-manager", new NamedDefinitionParser(MuleProperties.OBJECT_SECURITY_MANAGER));
 24  0
         registerBeanDefinitionParser("security-provider", new ChildDefinitionParser("provider", JaasSimpleAuthenticationProvider.class));
 25  0
         registerBeanDefinitionParser("password-encryption-strategy", new ChildDefinitionParser("encryptionStrategy", PasswordBasedEncryptionStrategy.class));
 26  0
         registerBeanDefinitionParser("jaas-security-filter", new SecurityFilterDefinitionParser(JaasSecurityFilter.class));
 27  0
     }
 28  
 
 29  
 }
 30  
 
 31