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

## JsonWebToken Class

Represents a JSON Web Token \(JWT\), a compact, URL\-safe means of representing
claims to be transferred between two parties\. This record encapsulates the standard
JWT structure, offering properties to access and manipulate the header, payload, and claims\.

```csharp
public record JsonWebToken : System.IEquatable<Abblix.Jwt.JsonWebToken>
```

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

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[JsonWebToken](https://www.abblix.com/en/docs/api/abblix-jwt/Abblix.Jwt.JsonWebToken 'Abblix\.Jwt\.JsonWebToken')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')
### Properties

## JsonWebToken\.Header Property {#Abblix.Jwt.JsonWebToken.Header}

Represents the JWT header, containing metadata about the type of token and the algorithms used to secure it\.

```csharp
public Abblix.Jwt.JsonWebTokenHeader Header { get; init; }
```

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

### Remarks
The header typically includes information such as the type of token \(JWT\) and
the signing algorithm \(e\.g\., HS256, RS256\)\. This property allows direct access
and manipulation of these values\.

## JsonWebToken\.Payload Property {#Abblix.Jwt.JsonWebToken.Payload}

Represents the JWT payload, containing the claims about the entity \(typically, the user\)
and additional metadata\.

```csharp
public Abblix.Jwt.JsonWebTokenPayload Payload { get; init; }
```

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

### Remarks
The payload is where the claims of the JWT are stored\. This includes standard claims such as
issuer, subject, and expiration time, as well as custom claims as required by the application\.
### Methods

## JsonWebToken\.Deconstruct\(JsonWebTokenHeader, JsonWebTokenPayload\) Method {#Abblix.Jwt.JsonWebToken.Deconstruct(Abblix.Jwt.JsonWebTokenHeader,Abblix.Jwt.JsonWebTokenPayload)}

Splits the token into its header and payload components, enabling pattern\-style
destructuring at the call site\.

```csharp
public void Deconstruct(out Abblix.Jwt.JsonWebTokenHeader header, out Abblix.Jwt.JsonWebTokenPayload payload);
```
#### Parameters

###### `header` [JsonWebTokenHeader](https://www.abblix.com/en/docs/api/abblix-jwt/Abblix.Jwt.JsonWebTokenHeader 'Abblix\.Jwt\.JsonWebTokenHeader') {#Abblix.Jwt.JsonWebToken.Deconstruct(Abblix.Jwt.JsonWebTokenHeader,Abblix.Jwt.JsonWebTokenPayload).header}

Receives the JWS/JWT header section\.

###### `payload` [JsonWebTokenPayload](https://www.abblix.com/en/docs/api/abblix-jwt/Abblix.Jwt.JsonWebTokenPayload 'Abblix\.Jwt\.JsonWebTokenPayload') {#Abblix.Jwt.JsonWebToken.Deconstruct(Abblix.Jwt.JsonWebTokenHeader,Abblix.Jwt.JsonWebTokenPayload).payload}

Receives the claim\-bearing payload section\.
