#### [Abblix\.Jwt](https://www.abblix.com/docs/api/abblix-jwt 'index')
### [Abblix\.Jwt](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt 'Abblix\.Jwt')

## 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\.

```csharp
public static class JwsCompactParser
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → JwsCompactParser
### Methods

## JwsCompactParser\.Parse\(string\[\]\) Method {#Abblix.Jwt.JwsCompactParser.Parse(string[])}

The token the first two of [jwtParts](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JwsCompactParser#Abblix.Jwt.JwsCompactParser.Parse(string[]).jwtParts 'Abblix\.Jwt\.JwsCompactParser\.Parse\(string\[\]\)\.jwtParts') \(header and payload\) hold, or
[MalformedToken](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JwtError#Abblix.Jwt.JwtError.MalformedToken 'Abblix\.Jwt\.JwtError\.MalformedToken') when either is not strict base64url of a JSON object in UTF\-8 without a
repeated member name\.

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

###### `jwtParts` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array 'System\.Array') {#Abblix.Jwt.JwsCompactParser.Parse(string[]).jwtParts}

The dot\-separated parts of a compact JWS\.

#### Returns
[Abblix\.Utils\.Result&lt;](https://www.abblix.com/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[JsonWebToken](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebToken 'Abblix\.Jwt\.JsonWebToken')[,](https://www.abblix.com/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[JwtValidationError](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JwtValidationError 'Abblix\.Jwt\.JwtValidationError')[&gt;](https://www.abblix.com/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')
