Uredi

Deli z drugimi prek


ServiceCredentialsSecurityTokenManager.CreateSecurityTokenSerializer Method

Definition

Creates a security token serializer based on the security token version passed in.

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 version of the security token.

Returns

The security token serializer.

Exceptions

A security token serializer cannot be created for the version that was passed in.

Remarks

The SecurityTokenSerializer is used for writing and reading security tokens and security token references. When deserializing the token from XML, the returned token must be able to perform cryptographic operations. The token serializer must be able to do enough validation to ensure that the token can do cryptographic operations (Kerberos ticket processing, X.509 decoding, SAML decoding, and so on) but should defer application trust decisions to the authenticator.

Applies to