Uredi

Deli z drugimi prek


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.

public:
 override System::IdentityModel::Selectors::SecurityTokenSerializer ^ CreateSecurityTokenSerializer(System::IdentityModel::Selectors::SecurityTokenVersion ^ version);
public override System.IdentityModel.Selectors.SecurityTokenSerializer CreateSecurityTokenSerializer (System.IdentityModel.Selectors.SecurityTokenVersion version);
override this.CreateSecurityTokenSerializer : System.IdentityModel.Selectors.SecurityTokenVersion -> System.IdentityModel.Selectors.SecurityTokenSerializer
Public Overrides Function CreateSecurityTokenSerializer (version As SecurityTokenVersion) As SecurityTokenSerializer

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

CreateSecurityTokenSerializer(SecurityVersion)

Creates a security token serializer.

protected:
 System::IdentityModel::Selectors::SecurityTokenSerializer ^ CreateSecurityTokenSerializer(System::ServiceModel::Security::SecurityVersion ^ version);
protected System.IdentityModel.Selectors.SecurityTokenSerializer CreateSecurityTokenSerializer (System.ServiceModel.Security.SecurityVersion version);
override this.CreateSecurityTokenSerializer : System.ServiceModel.Security.SecurityVersion -> System.IdentityModel.Selectors.SecurityTokenSerializer
Protected Function CreateSecurityTokenSerializer (version As SecurityVersion) As SecurityTokenSerializer

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