* Creates a new ExchangeUtil for the specified Exchange.
* @param exchange the Exchange
*/
public DefaultExchangeSecurity(Exchange exchange) {
_exchange = exchange;
SecurityMetadata securityMetadata = SecurityMetadata.getSecurityMetadata(exchange);
ServiceSecurity serviceSecurity = securityMetadata.getServiceSecurity();
_securityDomain = serviceSecurity != null ? serviceSecurity.getSecurityDomain() : null;
ServiceDomain serviceDomain = securityMetadata.getServiceDomain();
_securityContextManager = serviceDomain != null ? new SecurityContextManager(serviceDomain) : null;
}