> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CredentialSecrets

> The secret fields a call's request or answer carries, by JSON pointer.

```csharp
public static class CredentialSecrets
```

## Methods

### Restore()

```csharp
public static void Restore(JsonNode? node, IReadOnlyDictionary<string, string> secrets)
```

Puts the values [Take(ConnectorManifest, JsonNode?)](https://klef.ai/docs/connector-sdk/reference/sdk/credentialsecrets.md) took back where they were.

#### Parameters

**node** `JsonNode` *required*

**secrets** `IReadOnlyDictionary\<string, string\>` *required*

### Take()

```csharp
public static IReadOnlyDictionary<string, string> Take(ConnectorManifest manifest, JsonNode? node)
```

Takes every field the manifest marks secret out of `node`: those of the credentials it carries, and those of the objects' own fields in a payload or a read.

#### Parameters

**manifest** `ConnectorManifest` *required*

**node** `JsonNode` *required*

#### Returns

`IReadOnlyDictionary<string, string>`

The values taken, by JSON pointer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.