in app/auth/BearerTokenAuth.scala [83:95]
private def signingCertPath = config.get[String]("auth.tokenSigningCertPath")
protected def loadRemoteJWKSet(remotePath:String) = JWKSet.load(new URL(remotePath))
protected def loadLocalJWKSet(pemCertLocation:String) = {
val s = Source.fromFile(pemCertLocation, "UTF-8")
try {
val pemCertData = s.getLines().reduce(_ + _)
new JWKSet(JWK.parseFromPEMEncodedX509Cert(pemCertData))
} finally {
s.close()
}
}