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

## MintedKeysBuilderExtensions Class

The single\-issuer form of [AdoptExistingKeys\(string, JsonWebKey\[\]\)](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys.IMintedKeysBuilder#Abblix.Jwt.ExternalKeys.IMintedKeysBuilder.AdoptExistingKeys(string,Abblix.Jwt.JsonWebKey[]) 'Abblix\.Jwt\.ExternalKeys\.IMintedKeysBuilder\.AdoptExistingKeys\(string, Abblix\.Jwt\.JsonWebKey\[\]\)')\.

```csharp
public static class MintedKeysBuilderExtensions
```

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

## MintedKeysBuilderExtensions\.AdoptExistingKeys\(this IMintedKeysBuilder, JsonWebKey\[\]\) Method {#Abblix.Jwt.ExternalKeys.MintedKeysBuilderExtensions.AdoptExistingKeys(thisAbblix.Jwt.ExternalKeys.IMintedKeysBuilder,Abblix.Jwt.JsonWebKey[])}

Takes keys the server already signs with into the ring, so that switching to minted keys does not change
which key produces on the day it happens\.

```csharp
public static Abblix.Jwt.ExternalKeys.IMintedKeysBuilder AdoptExistingKeys(this Abblix.Jwt.ExternalKeys.IMintedKeysBuilder builder, params Abblix.Jwt.JsonWebKey[] keys);
```
#### Parameters

###### `builder` [IMintedKeysBuilder](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys.IMintedKeysBuilder 'Abblix\.Jwt\.ExternalKeys\.IMintedKeysBuilder') {#Abblix.Jwt.ExternalKeys.MintedKeysBuilderExtensions.AdoptExistingKeys(thisAbblix.Jwt.ExternalKeys.IMintedKeysBuilder,Abblix.Jwt.JsonWebKey[]).builder}

The builder the placement returned\.

###### `keys` [JsonWebKey](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.JsonWebKey 'Abblix\.Jwt\.JsonWebKey')[\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array 'System\.Array') {#Abblix.Jwt.ExternalKeys.MintedKeysBuilderExtensions.AdoptExistingKeys(thisAbblix.Jwt.ExternalKeys.IMintedKeysBuilder,Abblix.Jwt.JsonWebKey[]).keys}

The keys to take, private halves included \- the ring seals what it is given, and a key
            without its private half can be published but cannot sign\.

#### Returns
[IMintedKeysBuilder](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys.IMintedKeysBuilder 'Abblix\.Jwt\.ExternalKeys\.IMintedKeysBuilder')  
The same builder, so the `PersistRingTo...` call follows\.

### Remarks
The keys go into the ring's default partition \([DefaultPartition](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys.KeyRingOptions#Abblix.Jwt.ExternalKeys.KeyRingOptions.DefaultPartition 'Abblix\.Jwt\.ExternalKeys\.KeyRingOptions\.DefaultPartition')\)\. This is a
migration call and is meant to be deleted once the ring has rotated past the keys it names, but nothing breaks
if it is not: keys are taken only until the ring holds its first minted key, so from then on the call does
nothing\. It goes with its partition, though: when every partition is known at startup, keys adopted into one
the ring no longer keeps refuse the start and any opening of a partition\. See
[AdoptedKeys](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt.ExternalKeys.MintedKeys#Abblix.Jwt.ExternalKeys.MintedKeys.AdoptedKeys 'Abblix\.Jwt\.ExternalKeys\.MintedKeys\.AdoptedKeys') for what adoption does to the ordering\.
