org.mule.module.cxf.config.WsSecurity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-module-cxf Show documentation
Show all versions of mule-module-cxf Show documentation
A Mule module for web service connectivity using CXF.
/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.module.cxf.config;
import org.mule.module.cxf.support.MuleSecurityManagerValidator;
import java.util.HashMap;
import java.util.Map;
public class WsSecurity
{
String name;
WsSecurity ref;
WsConfig wsConfig;
MuleSecurityManagerValidator securityManager;
Map customValidator;
public void setRef(WsSecurity ref)
{
this.ref = ref;
}
public WsSecurity getRef()
{
return ref;
}
public void setWsConfig(WsConfig wsConfig)
{
this.wsConfig = wsConfig;
}
public Map getConfigProperties()
{
if(ref != null)
{
return ref.getConfigProperties();
}
if(wsConfig != null)
{
return wsConfig.getConfigProperties();
}
return new HashMap();
}
public MuleSecurityManagerValidator getSecurityManager()
{
if(ref != null)
{
return ref.getSecurityManager();
}
return securityManager;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
if(ref != null)
{
return ref.getName();
}
return name;
}
public void setSecurityManager(MuleSecurityManagerValidator securityManager)
{
this.securityManager = securityManager;
}
public void setCustomValidator(Map customValidator)
{
this.customValidator = customValidator;
}
public Map getCustomValidator()
{
if(ref != null)
{
return ref.getCustomValidator();
}
return customValidator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy