add new method to convert a Set<String> to a String[]
add support for authentication keys