MetadataSerializer Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides support for Metadata Serialization

Namespace:   System.IdentityModel.Metadata
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

System.Object
  System.IdentityModel.Metadata.MetadataSerializer

public class MetadataSerializer

NameDescription
System_CAPS_pubmethodMetadataSerializer()

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

System_CAPS_pubmethodMetadataSerializer(SecurityTokenSerializer)

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

NameDescription
System_CAPS_pubpropertyCertificateValidationMode

Gets or sets the validation mode of the X.509 certificate that is used to sign the metadata document.

System_CAPS_pubpropertyCertificateValidator

Gets or sets the certificate validator for the X.509 certificate that is used to sign the metadata document.

System_CAPS_pubpropertyRevocationMode

Gets or sets the revocation mode of the X.509 certificate that is used to sign the metadata document.

System_CAPS_pubpropertySecurityTokenSerializer

Gets the token serializer that is used by the current instance to serialize security tokens.

System_CAPS_pubpropertyTrustedIssuers

Gets the list of trusted issuers that are trusted to sign the metadata document by the current instance.

System_CAPS_pubpropertyTrustedStoreLocation

Gets or sets the trusted store location of the X.509 certificate that is used to sign the metadata document.

NameDescription
System_CAPS_protmethodCreateApplicationServiceInstance()

Creates an application service descriptor.

System_CAPS_protmethodCreateContactPersonInstance()

Creates a contact person.

System_CAPS_protmethodCreateEntitiesDescriptorInstance()

Creates an entities descriptor.

System_CAPS_protmethodCreateEntityDescriptorInstance()

Creates an entity descriptor.

System_CAPS_protmethodCreateIdentityProviderSingleSignOnDescriptorInstance()

Creates an IDPSSO descriptor.

System_CAPS_protmethodCreateIndexedProtocolEndpointInstance()

Creates an indexed enpoint.

System_CAPS_protmethodCreateKeyDescriptorInstance()

Creates a key descriptor.

System_CAPS_protmethodCreateLocalizedNameInstance()

Creates a localized name.

System_CAPS_protmethodCreateLocalizedUriInstance()

Creates a localized URI.

System_CAPS_protmethodCreateOrganizationInstance()

Creates an organization.

System_CAPS_protmethodCreateProtocolEndpointInstance()

Creates an endpoint.

System_CAPS_protmethodCreateSecurityTokenServiceDescriptorInstance()

Creates a security token service descriptor.

System_CAPS_protmethodCreateServiceProviderSingleSignOnDescriptorInstance()

Creates an SPSSO descriptor.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetMetadataSigningCertificate(SecurityKeyIdentifier)

Gets the X.509 certificate created from the specified key identifier.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodReadApplicationServiceDescriptor(XmlReader)

Reads an application service descriptor.

System_CAPS_protmethodReadAttribute(XmlReader)

Reads the <saml:Attribute> element.

System_CAPS_protmethodReadContactPerson(XmlReader)

Reads a contact person.

System_CAPS_protmethodReadCustomAttributes<T>(XmlReader, T)

Extensibility point for reading custom attributes.

System_CAPS_protmethodReadCustomElement<T>(XmlReader, T)

Extensibility point for reading custom elements. By default, returns false.

System_CAPS_protmethodReadCustomRoleDescriptor(String, XmlReader, EntityDescriptor)

Extensibility point for reading custom RoleDescriptors.

System_CAPS_protmethodReadDisplayClaim(XmlReader)

Reads a display claim.

System_CAPS_protmethodReadEntitiesDescriptor(XmlReader, SecurityTokenResolver)

Reads an entities descriptor.

System_CAPS_protmethodReadEntityDescriptor(XmlReader, SecurityTokenResolver)

Reads an entity descriptor.

System_CAPS_protmethodReadIdentityProviderSingleSignOnDescriptor(XmlReader)

Reads an IDPSSO descriptor.

System_CAPS_protmethodReadIndexedProtocolEndpoint(XmlReader)

Reads an indexed endpoint.

System_CAPS_protmethodReadKeyDescriptor(XmlReader)

Reads a key descriptor.

System_CAPS_protmethodReadLocalizedName(XmlReader)

Reads a localized name.

System_CAPS_protmethodReadLocalizedUri(XmlReader)

Reads a localized URI.

System_CAPS_pubmethodReadMetadata(Stream)

Reads the specified stream to deserialize an entity descriptor or an entities descriptor.

System_CAPS_pubmethodReadMetadata(XmlReader)

Reads the specified XML reader to deserialize an entity descriptor or an entities descriptor.

System_CAPS_pubmethodReadMetadata(XmlReader, SecurityTokenResolver)

Read the given XmlReader to deserialize an entity descriptor or an entities descriptor.

System_CAPS_protmethodReadMetadataCore(XmlReader, SecurityTokenResolver)

Reads an entity descriptor or an entities descriptor.

System_CAPS_protmethodReadOrganization(XmlReader)

Reads an organization.

System_CAPS_protmethodReadProtocolEndpoint(XmlReader)

Reads an endpoint.

System_CAPS_protmethodReadRoleDescriptorAttributes(XmlReader, RoleDescriptor)

Reads role descriptor attributes.

System_CAPS_protmethodReadRoleDescriptorElement(XmlReader, RoleDescriptor)

Reads role descriptor elements.

System_CAPS_protmethodReadSecurityTokenServiceDescriptor(XmlReader)

Reads a security token service descriptor.

System_CAPS_protmethodReadServiceProviderSingleSignOnDescriptor(XmlReader)

Reads an SPSSO descriptor.

System_CAPS_protmethodReadSingleSignOnDescriptorAttributes(XmlReader, SingleSignOnDescriptor)

Reads SSO descriptor attributes.

System_CAPS_protmethodReadSingleSignOnDescriptorElement(XmlReader, SingleSignOnDescriptor)

Reads SSO descriptor elements.

System_CAPS_protmethodReadWebServiceDescriptorAttributes(XmlReader, WebServiceDescriptor)

Reads web service descriptor attributes.

System_CAPS_pubmethodReadWebServiceDescriptorElement(XmlReader, WebServiceDescriptor)

Reads web service descriptor elements.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodValidateIssuer(X509Certificate2)

Validates the X.509 certificate that signed the metadata document against the trusted issuers list specified by the TrustedIssuers property. This method is invoked by the ValidateSigningCredential method.

System_CAPS_protmethodValidateSigningCredential(SigningCredentials)

Validates the signing credentials of the metadata document.

System_CAPS_protmethodWriteApplicationServiceDescriptor(XmlWriter, ApplicationServiceDescriptor)

Writes an application service descriptor.

System_CAPS_protmethodWriteAttribute(XmlWriter, Saml2Attribute)

Writes the <saml:Attribute> element.

System_CAPS_protmethodWriteContactPerson(XmlWriter, ContactPerson)

Writes a contact person.

System_CAPS_protmethodWriteCustomAttributes<T>(XmlWriter, T)

Extensible point to write custom attributes.

System_CAPS_protmethodWriteCustomElements<T>(XmlWriter, T)

Extensible point to write custom elements.

System_CAPS_protmethodWriteDisplayClaim(XmlWriter, DisplayClaim)

Writes a display claim.

System_CAPS_protmethodWriteEntitiesDescriptor(XmlWriter, EntitiesDescriptor)

Writes an entities descriptor.

System_CAPS_protmethodWriteEntityDescriptor(XmlWriter, EntityDescriptor)

Writes an entity descriptor.

System_CAPS_protmethodWriteIdentityProviderSingleSignOnDescriptor(XmlWriter, IdentityProviderSingleSignOnDescriptor)

Writes an IDPSSO descriptor.

System_CAPS_protmethodWriteIndexedProtocolEndpoint(XmlWriter, IndexedProtocolEndpoint, XmlQualifiedName)

Writes an indexed endpoint.

System_CAPS_protmethodWriteKeyDescriptor(XmlWriter, KeyDescriptor)

Writes a key descriptor.

System_CAPS_protmethodWriteLocalizedName(XmlWriter, LocalizedName, XmlQualifiedName)

Writes a localized name.

System_CAPS_protmethodWriteLocalizedUri(XmlWriter, LocalizedUri, XmlQualifiedName)

Writes a localized URI

System_CAPS_pubmethodWriteMetadata(Stream, MetadataBase)

Writes the federation metadata to the specified stream.

System_CAPS_pubmethodWriteMetadata(XmlWriter, MetadataBase)

Writes the federation metadata to the specified XML writer.

System_CAPS_protmethodWriteMetadataCore(XmlWriter, MetadataBase)

Writes the metadata.

System_CAPS_protmethodWriteOrganization(XmlWriter, Organization)

Writes an organization.

System_CAPS_protmethodWriteProtocolEndpoint(XmlWriter, ProtocolEndpoint, XmlQualifiedName)

Writes an endpoint.

System_CAPS_protmethodWriteRoleDescriptorAttributes(XmlWriter, RoleDescriptor)

Writes role descriptor attributes.

System_CAPS_protmethodWriteRoleDescriptorElements(XmlWriter, RoleDescriptor)

Writes the role descriptor element.

System_CAPS_protmethodWriteSecurityTokenServiceDescriptor(XmlWriter, SecurityTokenServiceDescriptor)

Writes a security token service descriptor.

System_CAPS_protmethodWriteServiceProviderSingleSignOnDescriptor(XmlWriter, ServiceProviderSingleSignOnDescriptor)

Writes an SPSSO descriptor.

System_CAPS_protmethodWriteSingleSignOnDescriptorAttributes(XmlWriter, SingleSignOnDescriptor)

Writes the SSO descriptor attributes.

System_CAPS_protmethodWriteSingleSignOnDescriptorElements(XmlWriter, SingleSignOnDescriptor)

Writes the SSO descriptor element.

System_CAPS_protmethodWriteWebServiceDescriptorAttributes(XmlWriter, WebServiceDescriptor)

Writes the web service descriptor attributes.

System_CAPS_protmethodWriteWebServiceDescriptorElements(XmlWriter, WebServiceDescriptor)

Writes a web service descriptor element.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticLanguageAttribute

A string constant that defines the language attribute, “xml:lang”.

System_CAPS_pubfieldSystem_CAPS_staticLanguageLocalName

A string constant that defines the language local name, “lang”.

System_CAPS_pubfieldSystem_CAPS_staticLanguageNamespaceUri

A string constant that defines the language namespace URI, “http://www.w3.org/XML/1998/namespace”.

System_CAPS_pubfieldSystem_CAPS_staticLanguagePrefix

A string constant that defines the language prefix, “xml”.

.NET Framework
Available since 4.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: