GroovySecurityScanConfig obj2 = GroovySecurityScanConfig.Factory.newInstance();
obj2.setExecuteScript( ( ( GroovySecurityCheckConfig )obj ).getExecuteScript() );
}
else if( obj instanceof ParameterExposureCheckConfig )
{
CrossSiteScriptingScanConfig obj2 = CrossSiteScriptingScanConfig.Factory.newInstance();
for( String el : ( ( ParameterExposureCheckConfig )obj ).getParameterExposureStringsList() )
{
obj2.addParameterExposureStrings( el );
}
}
else if( obj instanceof MaliciousAttachmentSecurityCheckConfig )
{
MaliciousAttachmentSecurityScanConfig obj2 = MaliciousAttachmentSecurityScanConfig.Factory
.newInstance();
obj2.setRequestTimeout( ( ( MaliciousAttachmentSecurityCheckConfig )obj ).getRequestTimeout() );
for( MaliciousAttachmentElementConfig el : ( ( MaliciousAttachmentSecurityCheckConfig )obj )
.getElementList() )
{
MaliciousAttachmentElementConfig el2 = obj2.addNewElement();
el2.setKey( el.getKey() );
el2.setRemove( el.getRemove() );
for( MaliciousAttachmentConfig gen : el.getGenerateAttachmentList() )
{
MaliciousAttachmentConfig gen2 = el2.addNewGenerateAttachment();
gen2.setCached( gen.getCached() );
gen2.setContentType( gen.getContentType() );
gen2.setEnabled( gen.getEnabled() );
gen2.setFilename( gen.getFilename() );
gen2.setSize( gen.getSize() );
}
for( MaliciousAttachmentConfig repl : el.getReplaceAttachmentList() )
{
MaliciousAttachmentConfig repl2 = el2.addNewReplaceAttachment();
repl2.setCached( repl.getCached() );
repl2.setContentType( repl.getContentType() );
repl2.setEnabled( repl.getEnabled() );
repl2.setFilename( repl.getFilename() );
repl2.setSize( repl.getSize() );
}
}
}
else if( obj instanceof SQLInjectionCheckConfig )
{
SQLInjectionScanConfig obj2 = SQLInjectionScanConfig.Factory.newInstance();
for( String el : ( ( SQLInjectionCheckConfig )obj ).getSqlInjectionStringsList() )
{
obj2.addSqlInjectionStrings( el );
}
}
else if( obj instanceof XmlBombSecurityCheckConfig )
{
XmlBombSecurityScanConfig obj2 = XmlBombSecurityScanConfig.Factory.newInstance();
obj2.setAttachXmlBomb( ( ( XmlBombSecurityCheckConfig )obj ).getAttachXmlBomb() );
obj2.setXmlAttachmentPrefix( ( ( XmlBombSecurityCheckConfig )obj ).getXmlAttachmentPrefix() );
for( String el : ( ( XmlBombSecurityCheckConfig )obj ).getXmlBombsList() )
{
obj2.addXmlBombs( el );
}
}
else
{
// boundary scan, malformed xml, xpath