#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.ResponseObject](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ResponseObject 'Abblix\.Oidc\.Server\.Features\.ResponseObject')

## ResponseModeExtensions Class

Helpers over the `response_mode` value for JARM
\([JWT Secured Authorization Response Mode](https://openid.net/specs/oauth-v2-jarm-final.html 'https://openid.net/specs/oauth-v2-jarm-final.html')\)\.

```csharp
public static class ResponseModeExtensions
```

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

## ResponseModeExtensions\.IsJwtMode\(this string\) Method {#Abblix.Oidc.Server.Features.ResponseObject.ResponseModeExtensions.IsJwtMode(thisstring)}

Determines whether the given response mode is a JARM \(JWT\-secured\) mode — one of
[QueryJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.QueryJwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.QueryJwt'), [FragmentJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.FragmentJwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.FragmentJwt'),
[FormPostJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.FormPostJwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.FormPostJwt') or [Jwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.Jwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.Jwt')\.

```csharp
public static bool IsJwtMode(this string responseMode);
```
#### Parameters

###### `responseMode` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.ResponseObject.ResponseModeExtensions.IsJwtMode(thisstring).responseMode}

#### Returns
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')

## ResponseModeExtensions\.ToDeliveryMode\(this string, bool\) Method {#Abblix.Oidc.Server.Features.ResponseObject.ResponseModeExtensions.ToDeliveryMode(thisstring,bool)}

Resolves a JARM \(JWT\-secured\) response mode to the plaintext delivery mode that carries the response JWT:
[QueryJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.QueryJwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.QueryJwt')→[Query](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.Query 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.Query'),
[FragmentJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.FragmentJwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.FragmentJwt')→[Fragment](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.Fragment 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.Fragment'),
[FormPostJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.FormPostJwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.FormPostJwt')→[FormPost](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.FormPost 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.FormPost')\. The
[Jwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.Jwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.Jwt') shortcut resolves to [Fragment](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.Fragment 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.Fragment') for token\-bearing
flows and [Query](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.Query 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.Query') otherwise \(JARM §2\.3\.4\)\. A non\-JWT mode is returned unchanged\.

```csharp
public static string ToDeliveryMode(this string responseMode, bool carriesTokens);
```
#### Parameters

###### `responseMode` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.ResponseObject.ResponseModeExtensions.ToDeliveryMode(thisstring,bool).responseMode}

The requested response mode\.

###### `carriesTokens` [System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean') {#Abblix.Oidc.Server.Features.ResponseObject.ResponseModeExtensions.ToDeliveryMode(thisstring,bool).carriesTokens}

Whether the response carries front\-channel tokens \(used for the
            [Jwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResponseModes#Abblix.Oidc.Server.Common.Constants.ResponseModes.Jwt 'Abblix\.Oidc\.Server\.Common\.Constants\.ResponseModes\.Jwt') shortcut\)\.

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')
