JSON Web Signature implementation in Scala