ClientCredentialsSecurityTokenManager.CreateSecurityTokenSerializer Method

Definition

Creates a security token serializer.

Overloads

CreateSecurityTokenSerializer(SecurityTokenVersion)

Creates a security token serializer.

CreateSecurityTokenSerializer(SecurityVersion)

Creates a security token serializer.

Remarks

The two overloads differ in their input parameter: one takes a SecurityTokenVersion; the other takes a SecurityVersion.

CreateSecurityTokenSerializer(SecurityTokenVersion)

Source:
ClientCredentialsSecurityTokenManager.cs
Source:
ClientCredentialsSecurityTokenManager.cs

Creates a security token serializer.

C#
public override System.IdentityModel.Selectors.SecurityTokenSerializer CreateSecurityTokenSerializer(System.IdentityModel.Selectors.SecurityTokenVersion version);

Parameters

version
SecurityTokenVersion

The SecurityTokenVersion of the security token.

Returns

The SecurityTokenSerializer object.

Remarks

The SecurityTokenSerializer is used to write and read security tokens, security key identifiers, and security key identifier clauses. When deserializing the token from XML, the returned token must be able to perform cryptographic operations. The token serializer therefore must ensure the deserialized token can perform cryptographic operations (Kerberos ticket processing, X.509 decoding, SAML decoding and other operations) but should defer application trust decisions to the security token authenticator.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

CreateSecurityTokenSerializer(SecurityVersion)

Creates a security token serializer.

C#
protected System.IdentityModel.Selectors.SecurityTokenSerializer CreateSecurityTokenSerializer(System.ServiceModel.Security.SecurityVersion version);

Parameters

version
SecurityVersion

The SecurityVersion of the security token.

Returns

The SecurityTokenSerializer object.

Remarks

The SecurityTokenSerializer is used to write and read security tokens, security key identifiers and security key identifier clauses. When deserializing the token from XML, the returned token must be able to perform cryptographic operations. The token serializer therefore must ensure the deserialized token can perform cryptographic operations (Kerberos ticket processing, X.509 decoding, SAML decoding and other operations) but should defer application trust decisions to the security token authenticator.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1