MetadataSerializer 类

定义

提供对元数据序列化的支持。Provides support for Metadata Serialization.

public ref class MetadataSerializer
public class MetadataSerializer
type MetadataSerializer = class
Public Class MetadataSerializer
继承
MetadataSerializer

构造函数

MetadataSerializer()

使用默认标记序列化程序初始化 MetadataSerializer 类的新实例。Initializes a new instance of the MetadataSerializer class with a default token serializer.

MetadataSerializer(SecurityTokenSerializer)

初始化使用指定的标记序列化程序 MetadataSerializer 类的新实例。Initializes a new instance of the MetadataSerializer class that uses the specified token serializer.

字段

LanguageAttribute

一个定义语言特性的字符串常数,"xml:lang"。A string constant that defines the language attribute, "xml:lang".

LanguageLocalName

一个定义语言本地名称的字符串常数,"lang"。A string constant that defines the language local name, "lang".

LanguageNamespaceUri

一个定义语言命名空间 URI 的字符串常数,http://www.w3.org/XML/1998/namespaceA string constant that defines the language namespace URI, http://www.w3.org/XML/1998/namespace.

LanguagePrefix

一个定义语言前缀的字符串常数,"xml"。A string constant that defines the language prefix, "xml".

属性

CertificateValidationMode

获取或设置用于对元数据文档进行签名的 X.509 证书的验证模式。Gets or sets the validation mode of the X.509 certificate that is used to sign the metadata document.

CertificateValidator

获取或设置用于对元数据文档进行签名的 X.509 证书的证书验证程序。Gets or sets the certificate validator for the X.509 certificate that is used to sign the metadata document.

RevocationMode

获取或设置用于对元数据文档进行签名的 X.509 证书的吊销模式。Gets or sets the revocation mode of the X.509 certificate that is used to sign the metadata document.

SecurityTokenSerializer

获取当前实例用来序列化安全标记的标记的序列化程序。Gets the token serializer that is used by the current instance to serialize security tokens.

TrustedIssuers

获取能够通过当前实例签署元数据文档的可信发行人列表。Gets the list of trusted issuers that are trusted to sign the metadata document by the current instance.

TrustedStoreLocation

获取或设置用于对元数据文档进行签名的 X.509 证书的受信任存储位置。Gets or sets the trusted store location of the X.509 certificate that is used to sign the metadata document.

方法

CreateApplicationServiceInstance()

创建应用程序服务描述符。Creates an application service descriptor.

CreateContactPersonInstance()

创建一个联系人。Creates a contact person.

CreateEntitiesDescriptorInstance()

创建实体描述符。Creates an entities descriptor.

CreateEntityDescriptorInstance()

创建实体描述符。Creates an entity descriptor.

CreateIdentityProviderSingleSignOnDescriptorInstance()

创建 IDPSSO 描述符。Creates an IDPSSO descriptor.

CreateIndexedProtocolEndpointInstance()

创建已编入索引的终结点。Creates an indexed endpoint.

CreateKeyDescriptorInstance()

创建一个键描述符。Creates a key descriptor.

CreateLocalizedNameInstance()

创建本地化的名称。Creates a localized name.

CreateLocalizedUriInstance()

创建本地化 URI。Creates a localized URI.

CreateOrganizationInstance()

创建组织。Creates an organization.

CreateProtocolEndpointInstance()

创建一个终结点。Creates an endpoint.

CreateSecurityTokenServiceDescriptorInstance()

创建安全标记服务说明符。Creates a security token service descriptor.

CreateServiceProviderSingleSignOnDescriptorInstance()

创建 SPSSO 描述符。Creates an SPSSO descriptor.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetMetadataSigningCertificate(SecurityKeyIdentifier)

获取从指定的密钥标识符创建 X.509 证书。Gets the X.509 certificate created from the specified key identifier.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ReadApplicationServiceDescriptor(XmlReader)

读取应用程序服务描述符。Reads an application service descriptor.

ReadAttribute(XmlReader)

读取 <saml:Attribute> 元素。Reads the <saml:Attribute> element.

ReadContactPerson(XmlReader)

读取联系人。Reads a contact person.

ReadCustomAttributes<T>(XmlReader, T)

读取自定义特性的可扩展点。Extensibility point for reading custom attributes.

ReadCustomElement<T>(XmlReader, T)

读取自定义元素的可扩展点。Extensibility point for reading custom elements. 默认情况下,返回 falseBy default, returns false.

ReadCustomRoleDescriptor(String, XmlReader, EntityDescriptor)

读取自定义 RoleDescriptors 的可扩展点。Extensibility point for reading custom RoleDescriptors.

ReadDisplayClaim(XmlReader)

读取显示声明。Reads a display claim.

ReadEntitiesDescriptor(XmlReader, SecurityTokenResolver)

读取实体描述符。Reads an entities descriptor.

ReadEntityDescriptor(XmlReader, SecurityTokenResolver)

读取实体描述符。Reads an entity descriptor.

ReadIdentityProviderSingleSignOnDescriptor(XmlReader)

读取 IDPSSO 描述符。Reads an IDPSSO descriptor.

ReadIndexedProtocolEndpoint(XmlReader)

读取索引的终结点。Reads an indexed endpoint.

ReadKeyDescriptor(XmlReader)

读取密钥描述符。Reads a key descriptor.

ReadLocalizedName(XmlReader)

读取本地化的名称。Reads a localized name.

ReadLocalizedUri(XmlReader)

读取本地化 URI。Reads a localized URI.

ReadMetadata(Stream)

读取指定的流以反序列化实体描述符。Reads the specified stream to deserialize an entity descriptor or an entities descriptor.

ReadMetadata(XmlReader)

读取指定的 XML 读取器以反序列化实体描述符。Reads the specified XML reader to deserialize an entity descriptor or an entities descriptor.

ReadMetadata(XmlReader, SecurityTokenResolver)

读取特定 XmlReader 反序列化实体描述符。Read the given XmlReader to deserialize an entity descriptor or an entities descriptor.

ReadMetadataCore(XmlReader, SecurityTokenResolver)

读取实体描述符。Reads an entity descriptor or an entities descriptor.

ReadOrganization(XmlReader)

读取组织。Reads an organization.

ReadProtocolEndpoint(XmlReader)

读取一个终点。Reads an endpoint.

ReadRoleDescriptorAttributes(XmlReader, RoleDescriptor)

读取角色描述符特性。Reads role descriptor attributes.

ReadRoleDescriptorElement(XmlReader, RoleDescriptor)

读取角色描述符元素。Reads role descriptor elements.

ReadSecurityTokenServiceDescriptor(XmlReader)

读取安全标记服务说明符。Reads a security token service descriptor.

ReadServiceProviderSingleSignOnDescriptor(XmlReader)

读取 SPSSO 描述符。Reads an SPSSO descriptor.

ReadSingleSignOnDescriptorAttributes(XmlReader, SingleSignOnDescriptor)

读取 SSO 描述符特性。Reads SSO descriptor attributes.

ReadSingleSignOnDescriptorElement(XmlReader, SingleSignOnDescriptor)

读取 SSO 描述符元素。Reads SSO descriptor elements.

ReadWebServiceDescriptorAttributes(XmlReader, WebServiceDescriptor)

读取 web 服务描述符特性。Reads web service descriptor attributes.

ReadWebServiceDescriptorElement(XmlReader, WebServiceDescriptor)

读取 web 服务描述符元素。Reads web service descriptor elements.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
ValidateIssuer(X509Certificate2)

验证 X.509 证书,该证书针对由 TrustedIssuers 属性指定的可信发布者列表对元数据文档进行了签名。Validates the X.509 certificate that signed the metadata document against the trusted issuers list specified by the TrustedIssuers property. 此方法由 ValidateSigningCredential(SigningCredentials) 方向调用。This method is invoked by the ValidateSigningCredential(SigningCredentials) method.

ValidateSigningCredential(SigningCredentials)

确认变数据文件的签名凭据。Validates the signing credentials of the metadata document.

WriteApplicationServiceDescriptor(XmlWriter, ApplicationServiceDescriptor)

写入应用程序服务描述符。Writes an application service descriptor.

WriteAttribute(XmlWriter, Saml2Attribute)

写入 <saml:Attribute> 元素。Writes the <saml:Attribute> element.

WriteContactPerson(XmlWriter, ContactPerson)

写入联系人。Writes a contact person.

WriteCustomAttributes<T>(XmlWriter, T)

编写自定义特性的可扩展点。Extensible point to write custom attributes.

WriteCustomElements<T>(XmlWriter, T)

编写自定义元素的可扩展点。Extensible point to write custom elements.

WriteDisplayClaim(XmlWriter, DisplayClaim)

写入显示声明。Writes a display claim.

WriteEntitiesDescriptor(XmlWriter, EntitiesDescriptor)

写入实体描述符。Writes an entities descriptor.

WriteEntityDescriptor(XmlWriter, EntityDescriptor)

写入实体描述符。Writes an entity descriptor.

WriteIdentityProviderSingleSignOnDescriptor(XmlWriter, IdentityProviderSingleSignOnDescriptor)

写入 IDPSSO 描述符。Writes an IDPSSO descriptor.

WriteIndexedProtocolEndpoint(XmlWriter, IndexedProtocolEndpoint, XmlQualifiedName)

写入索引的终结点。Writes an indexed endpoint.

WriteKeyDescriptor(XmlWriter, KeyDescriptor)

写入密钥描述符。Writes a key descriptor.

WriteLocalizedName(XmlWriter, LocalizedName, XmlQualifiedName)

写入本地化名称。Writes a localized name.

WriteLocalizedUri(XmlWriter, LocalizedUri, XmlQualifiedName)

写入本地化 URI。Writes a localized URI.

WriteMetadata(Stream, MetadataBase)

将该联合元数据写入指定流。Writes the federation metadata to the specified stream.

WriteMetadata(XmlWriter, MetadataBase)

将联合元数据写入指定 XML 写入器。Writes the federation metadata to the specified XML writer.

WriteMetadataCore(XmlWriter, MetadataBase)

写入元数据。Writes the metadata.

WriteOrganization(XmlWriter, Organization)

写入组织Writes an organization.

WriteProtocolEndpoint(XmlWriter, ProtocolEndpoint, XmlQualifiedName)

写入终结点。Writes an endpoint.

WriteRoleDescriptorAttributes(XmlWriter, RoleDescriptor)

写入角色描述符特性。Writes role descriptor attributes.

WriteRoleDescriptorElements(XmlWriter, RoleDescriptor)

写入角色描述符元素。Writes the role descriptor element.

WriteSecurityTokenServiceDescriptor(XmlWriter, SecurityTokenServiceDescriptor)

写入安全标记服务说明符。Writes a security token service descriptor.

WriteServiceProviderSingleSignOnDescriptor(XmlWriter, ServiceProviderSingleSignOnDescriptor)

写入 SPSSO 描述符。Writes an SPSSO descriptor.

WriteSingleSignOnDescriptorAttributes(XmlWriter, SingleSignOnDescriptor)

写入 SSO 描述符特性。Writes the SSO descriptor attributes.

WriteSingleSignOnDescriptorElements(XmlWriter, SingleSignOnDescriptor)

写入 SSO 描述符元素。Writes the SSO descriptor element.

WriteWebServiceDescriptorAttributes(XmlWriter, WebServiceDescriptor)

写入 web 服务描述符特性。Writes the web service descriptor attributes.

WriteWebServiceDescriptorElements(XmlWriter, WebServiceDescriptor)

写入 web 服务描述符元素。Writes a web service descriptor element.

适用于