Edit

Share via


MetadataSerializer Constructors

Definition

Initializes a new instance of the MetadataSerializer class.

Overloads

MetadataSerializer()

Initializes a new instance of the MetadataSerializer class with a default token serializer.

MetadataSerializer(SecurityTokenSerializer)

Initializes a new instance of the MetadataSerializer class that uses the specified token serializer.

MetadataSerializer()

Initializes a new instance of the MetadataSerializer class with a default token serializer.

public:
 MetadataSerializer();
public MetadataSerializer ();
Public Sub New ()

Remarks

The CertificateValidationModeRevocationMode and TrustedStoreLocation properties are initialized to the following values: IdentityConfiguration.DefaultCertificateValidationMode, IdentityConfiguration.DefaultRevocationMode, and IdentityConfiguration.DefaultTrustedStoreLocation.

Applies to

MetadataSerializer(SecurityTokenSerializer)

Initializes a new instance of the MetadataSerializer class that uses the specified token serializer.

public:
 MetadataSerializer(System::IdentityModel::Selectors::SecurityTokenSerializer ^ tokenSerializer);
public MetadataSerializer (System.IdentityModel.Selectors.SecurityTokenSerializer tokenSerializer);
new System.IdentityModel.Metadata.MetadataSerializer : System.IdentityModel.Selectors.SecurityTokenSerializer -> System.IdentityModel.Metadata.MetadataSerializer
Public Sub New (tokenSerializer As SecurityTokenSerializer)

Parameters

tokenSerializer
SecurityTokenSerializer

The token serializer that will be used to serialize security tokens.

Exceptions

tokenSerializer is null.

Remarks

The CertificateValidationModeRevocationMode and TrustedStoreLocation properties are initialized to the following values: IdentityConfiguration.DefaultCertificateValidationMode, IdentityConfiguration.DefaultRevocationMode, and IdentityConfiguration.DefaultTrustedStoreLocation.

Applies to