Security framework and libraries written in Scala