}
public AuthzResult authoriseCreateExchange(AMQProtocolSession session, boolean autoDelete, boolean durable,
AMQShortString exchangeName, boolean internal, boolean nowait, boolean passive, AMQShortString exchangeType)
{
PrincipalPermissions principalPermissions = _users.get(session.getAuthorizedID().getName());
if (principalPermissions == null)
{
return AuthzResult.DENIED;
}
else
{
return principalPermissions.authorise(Permission.CREATEEXCHANGE, exchangeName);
}
}