Skip to content

JwsCompactParser Class

Reads the header and the payload of a compact JWS into a token, as RFC 7515 section 5.2 has a recipient decode and parse them, and verifies nothing: the first link of the JWS validation chain, and the one reading a consumer that judges a token's claims before its signature starts from.

C#
public static class JwsCompactParser

Inheritance System.Object → JwsCompactParser

Methods

JwsCompactParser.Parse(string[]) Method

The token the first two of jwtParts (header and payload) hold, or MalformedToken when either is not strict base64url of a JSON object in UTF-8 without a repeated member name.

C#
public static Abblix.Utils.Result<Abblix.Jwt.JsonWebToken,Abblix.Jwt.JwtValidationError> Parse(string[] jwtParts);

Parameters

jwtParts System.String[]

The dot-separated parts of a compact JWS.

Returns

Abblix.Utils.Result<JsonWebToken,JwtValidationError>