caseclassNoAuthorizationHeaderException(request:HttpRequest)extendsShrineJwtException(s"No ${Authorization.name} header found in $request",missingCredentials)
caseclassWrongNumberOfSegmentsException(httpHeader:HttpHeader)extendsShrineJwtException(s"Header had ${splitHeaderValue.length} space-delimited segments, not 2, in $httpHeader.",missingCredentials)
caseclassNotBearerAuthException(httpHeader:HttpHeader)extendsShrineJwtException(s"Expected $BearerAuthScheme, not ${splitHeaderValue(0)} in $httpHeader.",missingCredentials)
//if not in the keystore, check that the issuer is available
valissuer:Principal=cert.getIssuerX500Principal
caseclassCertIssuerNotInCollectionException(issuingSite:String,issuer:Principal)extendsShrineJwtException(s"Could not find a CA certificate with issuer DN $issuer. Known CA cert aliases are ${certCollection.caCertAliases.mkString(",")}")