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

## ProfiledJwtIssuer Class

The one door to [IJsonWebTokenCreator](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.IJsonWebTokenCreator 'Abblix\.Jwt\.IJsonWebTokenCreator') for what this server signs or encrypts: it refuses to issue a
token whose signature or key management algorithm the security profile in force does not admit\.

```csharp
public sealed class ProfiledJwtIssuer
```

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

### Remarks
FAPI 1\.0 Part 2 section 8\.6: "For JWS, both clients and authorization servers shall use PS256 or ES256 algorithms";
section 8\.6\.1: "For JWE, both clients and authorization servers shall not use the RSA1\_5 algorithm"; FAPI 2\.0 section
5\.4\.1, "when creating or processing JWTs"\. The algorithm is judged as it is handed to the creator, after every path
has chosen it \- a client's configuration, a key's declared algorithm, a deployment setting \- so no path can reach the
creator with one the profile refuses\. Each caller's own choice still prefers an admitted algorithm; this is what
holds when a choice did not\.

Public, though nothing outside this library needs it, because the formatters that take it are public types with
public constructors, which the container requires.
### Constructors

## ProfiledJwtIssuer\(IJsonWebTokenCreator, EncryptionAlgorithmsProvider\) Constructor {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.ProfiledJwtIssuer(Abblix.Jwt.IJsonWebTokenCreator,Abblix.Jwt.EncryptionAlgorithmsProvider)}

The one door to [IJsonWebTokenCreator](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.IJsonWebTokenCreator 'Abblix\.Jwt\.IJsonWebTokenCreator') for what this server signs or encrypts: it refuses to issue a
token whose signature or key management algorithm the security profile in force does not admit\.

```csharp
public ProfiledJwtIssuer(Abblix.Jwt.IJsonWebTokenCreator creator, Abblix.Jwt.EncryptionAlgorithmsProvider encryptionAlgorithms);
```
#### Parameters

###### `creator` [IJsonWebTokenCreator](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.IJsonWebTokenCreator 'Abblix\.Jwt\.IJsonWebTokenCreator') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.ProfiledJwtIssuer(Abblix.Jwt.IJsonWebTokenCreator,Abblix.Jwt.EncryptionAlgorithmsProvider).creator}

Issues the token once its algorithms are admitted\.

###### `encryptionAlgorithms` [EncryptionAlgorithmsProvider](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.EncryptionAlgorithmsProvider 'Abblix\.Jwt\.EncryptionAlgorithmsProvider') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.ProfiledJwtIssuer(Abblix.Jwt.IJsonWebTokenCreator,Abblix.Jwt.EncryptionAlgorithmsProvider).encryptionAlgorithms}

Tells which keys may be used with a key management algorithm\.

### Remarks
FAPI 1\.0 Part 2 section 8\.6: "For JWS, both clients and authorization servers shall use PS256 or ES256 algorithms";
section 8\.6\.1: "For JWE, both clients and authorization servers shall not use the RSA1\_5 algorithm"; FAPI 2\.0 section
5\.4\.1, "when creating or processing JWTs"\. The algorithm is judged as it is handed to the creator, after every path
has chosen it \- a client's configuration, a key's declared algorithm, a deployment setting \- so no path can reach the
creator with one the profile refuses\. Each caller's own choice still prefers an admitted algorithm; this is what
holds when a choice did not\.

Public, though nothing outside this library needs it, because the formatters that take it are public types with
public constructors, which the container requires.
### Methods

## ProfiledJwtIssuer\.EncryptClaimsAsync\(SecurityProfileRequirements, JsonWebToken, JsonWebKey, string, string\) Method {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string)}

Issues [token](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).token 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.EncryptClaimsAsync\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebToken, Abblix\.Jwt\.JsonWebKey, string, string\)\.token') encrypted to [encryptionKey](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).encryptionKey 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.EncryptClaimsAsync\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebToken, Abblix\.Jwt\.JsonWebKey, string, string\)\.encryptionKey') without a signature, as its claims
set \([EncryptClaimsAsync\(JsonWebToken, JsonWebKey, string, string\)](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.IJsonWebTokenCreator#Abblix.Jwt.IJsonWebTokenCreator.EncryptClaimsAsync(Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string) 'Abblix\.Jwt\.IJsonWebTokenCreator\.EncryptClaimsAsync\(Abblix\.Jwt\.JsonWebToken,Abblix\.Jwt\.JsonWebKey,System\.String,System\.String\)')\), once [profile](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).profile 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.EncryptClaimsAsync\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebToken, Abblix\.Jwt\.JsonWebKey, string, string\)\.profile') admits an unsigned
token and the key management algorithm\.

```csharp
public System.Threading.Tasks.Task<string> EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements profile, Abblix.Jwt.JsonWebToken token, Abblix.Jwt.JsonWebKey encryptionKey, string keyEncryptionAlgorithm, string contentEncryptionAlgorithm);
```
#### Parameters

###### `profile` [SecurityProfileRequirements](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).profile}

The controls in force for what is issued\.

###### `token` [JsonWebToken](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebToken 'Abblix\.Jwt\.JsonWebToken') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).token}

The token, its header naming no signature algorithm but none\.

###### `encryptionKey` [JsonWebKey](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebKey 'Abblix\.Jwt\.JsonWebKey') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).encryptionKey}

The key to encrypt to\.

###### `keyEncryptionAlgorithm` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).keyEncryptionAlgorithm}

The key management algorithm\.

###### `contentEncryptionAlgorithm` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptClaimsAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,string,string).contentEncryptionAlgorithm}

The content encryption algorithm\.

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')

#### Exceptions

[AlgorithmRefusedByProfileException](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.AlgorithmRefusedByProfileException 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.AlgorithmRefusedByProfileException')  
The profile admits one of the algorithms not\.

## ProfiledJwtIssuer\.EncryptionAlgorithmFor\(SecurityProfileRequirements, JsonWebKey, string\) Method {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebKey,string)}

The key management algorithm a token would be encrypted to [key](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebKey,string).key 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.EncryptionAlgorithmFor\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebKey, string\)\.key') under, a key another party
publishes, or null when it cannot be: the algorithm the key declares, else [defaultAlgorithm](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebKey,string).defaultAlgorithm 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.EncryptionAlgorithmFor\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebKey, string\)\.defaultAlgorithm'),
provided this server performs it with a key of this type \([CanEncrypt\(JsonWebKey, string\)](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.EncryptionAlgorithmsProvider#Abblix.Jwt.EncryptionAlgorithmsProvider.CanEncrypt(Abblix.Jwt.JsonWebKey,string) 'Abblix\.Jwt\.EncryptionAlgorithmsProvider\.CanEncrypt\(Abblix\.Jwt\.JsonWebKey,System\.String\)')\),
and [profile](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebKey,string).profile 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.EncryptionAlgorithmFor\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebKey, string\)\.profile') admits it\. RFC 8725 section 3\.1 binds a key to the algorithm it declares, so a key published for signing, for an
algorithm the host did not register, or of a type the default algorithm does not fit is passed over, as is one
the profile forbids\.

```csharp
public string? EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements profile, Abblix.Jwt.JsonWebKey key, string defaultAlgorithm);
```
#### Parameters

###### `profile` [SecurityProfileRequirements](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebKey,string).profile}

The controls in force for what is issued\.

###### `key` [JsonWebKey](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebKey 'Abblix\.Jwt\.JsonWebKey') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebKey,string).key}

The published key\.

###### `defaultAlgorithm` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.EncryptionAlgorithmFor(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebKey,string).defaultAlgorithm}

The algorithm used for a key that declares none\.

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

## ProfiledJwtIssuer\.IssueAsync\(SecurityProfileRequirements, JsonWebToken, JsonWebKey, JsonWebKey, string, string\) Method {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string)}

Issues [token](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).token 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.IssueAsync\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebToken, Abblix\.Jwt\.JsonWebKey, Abblix\.Jwt\.JsonWebKey, string, string\)\.token'), signed with [signingKey](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).signingKey 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.IssueAsync\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebToken, Abblix\.Jwt\.JsonWebKey, Abblix\.Jwt\.JsonWebKey, string, string\)\.signingKey') and, where an encryption key is given,
encrypted to it, once [profile](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).profile 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.ProfiledJwtIssuer\.IssueAsync\(Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements, Abblix\.Jwt\.JsonWebToken, Abblix\.Jwt\.JsonWebKey, Abblix\.Jwt\.JsonWebKey, string, string\)\.profile') admits both algorithms\.

```csharp
public System.Threading.Tasks.Task<string> IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements profile, Abblix.Jwt.JsonWebToken token, Abblix.Jwt.JsonWebKey? signingKey, Abblix.Jwt.JsonWebKey? encryptionKey=null, string? keyEncryptionAlgorithm=null, string? contentEncryptionAlgorithm=null);
```
#### Parameters

###### `profile` [SecurityProfileRequirements](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements 'Abblix\.Oidc\.Server\.Features\.ClientInformation\.SecurityProfileRequirements') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).profile}

The controls in force for what is issued\.

###### `token` [JsonWebToken](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebToken 'Abblix\.Jwt\.JsonWebToken') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).token}

The token, its header naming the signature algorithm\.

###### `signingKey` [JsonWebKey](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebKey 'Abblix\.Jwt\.JsonWebKey') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).signingKey}

The key to sign with\.

###### `encryptionKey` [JsonWebKey](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebKey 'Abblix\.Jwt\.JsonWebKey') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).encryptionKey}

The key to encrypt to, or null to issue a JWS\.

###### `keyEncryptionAlgorithm` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).keyEncryptionAlgorithm}

The key management algorithm, where the token is encrypted\.

###### `contentEncryptionAlgorithm` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Tokens.Formatters.ProfiledJwtIssuer.IssueAsync(Abblix.Oidc.Server.Features.ClientInformation.SecurityProfileRequirements,Abblix.Jwt.JsonWebToken,Abblix.Jwt.JsonWebKey,Abblix.Jwt.JsonWebKey,string,string).contentEncryptionAlgorithm}

The content encryption algorithm, where the token is encrypted\.

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')

#### Exceptions

[AlgorithmRefusedByProfileException](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Tokens.Formatters.AlgorithmRefusedByProfileException 'Abblix\.Oidc\.Server\.Features\.Tokens\.Formatters\.AlgorithmRefusedByProfileException')  
The profile admits one of the algorithms not\.
