Pular para o conteúdo principal

NameGeneratorTypePolicies

Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Enum

Defines which underlying types will be used to represent each value in a Name object generated by the NameGenerator class.

public enum NameGeneratorTypePolicies

Membros

NomeDescrição
PrintableStringsOnlyUse only the PrintableString type for all values. If a value that cannot be represented as a PrintableString is found, an exception is thrown.
Utf8StringsOnly
Utf8StringsWhenNecessaryUse the PrintableString type for the values that can be expressed as such, Utf8String otherwise.
Utf8StringsWhenPossibleUse UTF-8 string for Name attributes that allow UTF-8 encoding. If not allowed, try to convert to PrintableString or IA5String, depending on the attribute rule. If lossless conversion is not possible, throws FormatException.