Skip to content

TaskSecrets

Static class in Oadm.Sdk.Tasks · Oadm.Sdk.dll

The default secrets of a payload type (ITaskPlugin.SecretsOf): its top-level SecretAttribute properties.

public static class TaskSecrets
static IReadOnlyList<TaskSecret> FromAttributes(Type? payloadType, JsonSerializerOptions? options)

One TaskSecret per top-level SecretAttribute property of payloadType (also a record’s constructor parameter), at its JSON name in options; empty without a type.

static string SlotName(string field)

A JSON name as a slot name: lower case letters and digits, words joined with underscores (“pkcs12Password” is “pkcs12_password”).