public XMLSecurityConnector( Settings settings ) throws JMSException
{
String securityDescriptorFilePath = settings.getStringProperty(FFMQServerSettings.SECURITY_CONNECTOR_XML_SECURITY, DEFAULT_SECURITY_FILE);
File securityDescriptorFile = new File(securityDescriptorFilePath);
if (!securityDescriptorFile.canRead())
throw new FFMQException("Cannot access security descriptor file : "+securityDescriptorFile.getAbsolutePath(),"FS_ERROR");
this.descriptor = (XMLSecurityDescriptor)new XMLDescriptorReader().read(securityDescriptorFile, XMLSecurityDescriptorHandler.class);
this.descriptor.check();
}