MetadataSerializer Class

.NET Framework 4.5

Provides support for Metadata Serialization

System.Object
  System.IdentityModel.Metadata.MetadataSerializer

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

public class MetadataSerializer

The MetadataSerializer type exposes the following members.

  NameDescription
Public methodMetadataSerializer()Initializes a new instance of the MetadataSerializer class with a default token serializer.
Public methodMetadataSerializer(SecurityTokenSerializer)Initializes a new instance of the MetadataSerializer class that uses the specified token serializer.
Top

  NameDescription
Public propertyCertificateValidationModeGets or sets the validation mode of the X.509 certificate that is used to sign the metadata document.
Public propertyCertificateValidatorGets or sets the certificate validator for the X.509 certificate that is used to sign the metadata document.
Public propertyRevocationModeGets or sets the revocation mode of the X.509 certificate that is used to sign the metadata document.
Public propertySecurityTokenSerializerGets the token serializer that is used by the current instance to serialize security tokens.
Public propertyTrustedIssuersGets the list of trusted issuers that are trusted to sign the metadata document by the current instance.
Public propertyTrustedStoreLocationGets or sets the trusted store location of the X.509 certificate that is used to sign the metadata document.
Top

  NameDescription
Protected methodCreateApplicationServiceInstanceCreates an application service descriptor.
Protected methodCreateContactPersonInstanceCreates a contact person.
Protected methodCreateEntitiesDescriptorInstanceCreates an entities descriptor.
Protected methodCreateEntityDescriptorInstanceCreates an entity descriptor.
Protected methodCreateIdentityProviderSingleSignOnDescriptorInstanceCreates an IDPSSO descriptor.
Protected methodCreateIndexedProtocolEndpointInstanceCreates an indexed enpoint.
Protected methodCreateKeyDescriptorInstanceCreates a key descriptor.
Protected methodCreateLocalizedNameInstanceCreates a localized name.
Protected methodCreateLocalizedUriInstanceCreates a localized URI.
Protected methodCreateOrganizationInstanceCreates an organization.
Protected methodCreateProtocolEndpointInstanceCreates an endpoint.
Protected methodCreateSecurityTokenServiceDescriptorInstanceCreates a security token service descriptor.
Protected methodCreateServiceProviderSingleSignOnDescriptorInstanceCreates an SPSSO descriptor.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetMetadataSigningCertificateGets the X.509 certificate created from the specified key identifier.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodReadApplicationServiceDescriptorReads an application service descriptor.
Protected methodReadAttributeReads the <saml:Attribute> element.
Protected methodReadContactPersonReads a contact person.
Protected methodReadCustomAttributes<T>Extensibility point for reading custom attributes.
Protected methodReadCustomElement<T>Extensibility point for reading custom elements. By default, returns false.
Protected methodReadCustomRoleDescriptorExtensibility point for reading custom RoleDescriptors.
Protected methodReadDisplayClaimReads a display claim.
Protected methodReadEntitiesDescriptorReads an entities descriptor.
Protected methodReadEntityDescriptorReads an entity descriptor.
Protected methodReadIdentityProviderSingleSignOnDescriptorReads an IDPSSO descriptor.
Protected methodReadIndexedProtocolEndpointReads an indexed endpoint.
Protected methodReadKeyDescriptorReads a key descriptor.
Protected methodReadLocalizedNameReads a localized name.
Protected methodReadLocalizedUriReads a localized URI.
Public methodReadMetadata(Stream)Reads the specified stream to deserialize an entity descriptor or an entities descriptor.
Public methodReadMetadata(XmlReader)Reads the specified XML reader to deserialize an entity descriptor or an entities descriptor.
Public methodReadMetadata(XmlReader, SecurityTokenResolver)Read the given XmlReader to deserialize an entity descriptor or an entities descriptor.
Protected methodReadMetadataCoreReads an entity descriptor or an entities descriptor.
Protected methodReadOrganizationReads an organization.
Protected methodReadProtocolEndpointReads an endpoint.
Protected methodReadRoleDescriptorAttributesReads role descriptor attributes.
Protected methodReadRoleDescriptorElementReads role descriptor elements.
Protected methodReadSecurityTokenServiceDescriptorReads a security token service descriptor.
Protected methodReadServiceProviderSingleSignOnDescriptorReads an SPSSO descriptor.
Protected methodReadSingleSignOnDescriptorAttributesReads SSO descriptor attributes.
Protected methodReadSingleSignOnDescriptorElementReads SSO descriptor elements.
Protected methodReadWebServiceDescriptorAttributesReads web service descriptor attributes.
Public methodReadWebServiceDescriptorElementReads web service descriptor elements.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodValidateIssuerValidates 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.
Protected methodValidateSigningCredentialValidates the signing credentials of the metadata document.
Protected methodWriteApplicationServiceDescriptorWrites an application service descriptor.
Protected methodWriteAttributeWrites the <saml:Attribute> element.
Protected methodWriteContactPersonWrites a contact person.
Protected methodWriteCustomAttributes<T>Extensible point to write custom attributes.
Protected methodWriteCustomElements<T>Extensible point to write custom elements.
Protected methodWriteDisplayClaimWrites a display claim.
Protected methodWriteEntitiesDescriptorWrites an entities descriptor.
Protected methodWriteEntityDescriptorWrites an entity descriptor.
Protected methodWriteIdentityProviderSingleSignOnDescriptorWrites an IDPSSO descriptor.
Protected methodWriteIndexedProtocolEndpointWrites an indexed endpoint.
Protected methodWriteKeyDescriptorWrites a key descriptor.
Protected methodWriteLocalizedNameWrites a localized name.
Protected methodWriteLocalizedUriWrites a localized URI
Public methodWriteMetadata(Stream, MetadataBase)Writes the federation metadata to the specified stream.
Public methodWriteMetadata(XmlWriter, MetadataBase)Writes the federation metadata to the specified XML writer.
Protected methodWriteMetadataCoreWrites the metadata.
Protected methodWriteOrganizationWrites an organization.
Protected methodWriteProtocolEndpointWrites an endpoint.
Protected methodWriteRoleDescriptorAttributesWrites role descriptor attributes.
Protected methodWriteRoleDescriptorElementsWrites the role descriptor element.
Protected methodWriteSecurityTokenServiceDescriptorWrites a security token service descriptor.
Protected methodWriteServiceProviderSingleSignOnDescriptorWrites an SPSSO descriptor.
Protected methodWriteSingleSignOnDescriptorAttributesWrites the SSO descriptor attributes.
Protected methodWriteSingleSignOnDescriptorElementsWrites the SSO descriptor element.
Protected methodWriteWebServiceDescriptorAttributesWrites the web service descriptor attributes.
Protected methodWriteWebServiceDescriptorElementsWrites a web service descriptor element.
Top

  NameDescription
Public fieldStatic memberLanguageAttributeA string constant that defines the language attribute, “xml:lang”.
Public fieldStatic memberLanguageLocalNameA string constant that defines the language local name, “lang”.
Public fieldStatic memberLanguageNamespaceUriA string constant that defines the language namespace URI, “http://www.w3.org/XML/1998/namespace”.
Public fieldStatic memberLanguagePrefixA string constant that defines the language prefix, “xml”.
Top

.NET Framework

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft