SamlEvidence 类

定义

表示用于呈现 SamlSecurityToken 安全令牌的授权决定的证据。Represents the evidence used to render an authorization decision for a SamlSecurityToken security token.

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

示例

SamlAuthorizationDecisionStatement

SamlAssertion

SamlSecurityToken

注解

SamlSecurityToken 安全令牌使用 SAML 断言指定其声明,这些断言可以指定使用者有权访问特定资源的时间。SamlSecurityToken security tokens specify their claims using SAML assertions, which can specify when the subject was authorized to access a specific resource. SAML 断言中的声明由 SAML 语句表示。The claims in a SAML assertion are represented by SAML statements. SAML 规范定义了一组 SAML 语句类型,其中一个类型为 SamlAuthorizationDecisionStatementThe SAML specification defines a set of SAML statement types and one of them is a SamlAuthorizationDecisionStatement. SamlAuthorizationDecisionStatement 断言已做出了有关主题访问指定资源的授权决定。An SamlAuthorizationDecisionStatement asserts an authorization decision regarding access by the subject to the specified resource has been made. SamlEvidence 类表示 SAML 授权机构用于呈现 SamlAuthorizationDecisionStatement 的授权决定的证据。The SamlEvidence class represents the evidence used by a SAML authority to render an authorization decision for a SamlAuthorizationDecisionStatement. 该证据指定为 SAML 断言或对 SAML 断言的引用,而这两者分别引用 AssertionsAssertionIdReferences 属性。The evidence is specified as SAML assertions or a reference to SAML assertions, which refer to the Assertions and AssertionIdReferences properties, respectively.

构造函数

SamlEvidence()

初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class.

SamlEvidence(IEnumerable<SamlAssertion>)

使用指定的 SAML 断言集初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertions.

SamlEvidence(IEnumerable<String>)

使用指定的 SAML 断言引用集初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertion references.

SamlEvidence(IEnumerable<String>, IEnumerable<SamlAssertion>)

使用一组指定的 SAML 断言引用和 SAML 断言初始化 SamlEvidence 类的新实例。Initializes a new instance of the SamlEvidence class using the specified set of SAML assertion references and SAML assertions.

属性

AssertionIdReferences

获取 SAML 断言的标识符的集合,这些断言指定 SAML 授权机构呈现授权决定时所依赖的证据。Gets a collection of identifiers for SAML assertions that specify the evidence that the SAML authority relied on to render the authorization decision.

Assertions

获取 SAML 断言的集合,这些断言包含 SAML 授权机构呈现授权决定时所依赖的证据。Gets the collection of SAML assertions that comprise the evidence that the SAML authority relied on to render the authorization decision.

IsReadOnly

获取一个值,该值指示此实例的属性是否是只读的。Gets a value that indicates whether the properties of this instance are read-only.

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
MakeReadOnly()

将此实例设置为只读的。Causes this instance to be read-only.

MemberwiseClone()

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

(继承自 Object)
ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver)

从指定的 XML 读取器读取证据。Reads the evidence from the specified XML reader.

ToString()

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

(继承自 Object)
WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer)

将证据写入指定的 XML 序列化程序。Writes the evidence into the specified XML serializer.

适用于