SamlAuthorizationDecisionStatement 类

定义

表示 SamlSecurityToken 安全令牌的一个声明,它断言已做出与该主题访问指定资源有关的授权决定。Represents a claim for a SamlSecurityToken security token that asserts that an authorization decision regarding access by the subject to the specified resource has been made.

public ref class SamlAuthorizationDecisionStatement : System::IdentityModel::Tokens::SamlSubjectStatement
public class SamlAuthorizationDecisionStatement : System.IdentityModel.Tokens.SamlSubjectStatement
type SamlAuthorizationDecisionStatement = class
    inherit SamlSubjectStatement
Public Class SamlAuthorizationDecisionStatement
Inherits SamlSubjectStatement
继承
SamlAuthorizationDecisionStatement

注解

SamlSecurityToken 安全令牌使用 SAML 断言指定其声明,这些断言可指定主题是否有权访问特定的资源。SamlSecurityToken security tokens specify their claims using SAML assertions, which can specify whether a subject is 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. 下表概括了与该授权决定关联的属性。The following table summarizes the properties that are associated with the authorization decision.

PropertyProperty 说明Description
AccessDecision 由 SAML 授权机构做出的、与 Resource 属性所表示的资源有关的授权决定。The authorization decision rendered by the SAML authority with respect to the resource represented by the Resource property.
Evidence SAML 授权机构做出该决定时所依赖的一组 SAML 断言。A set of SAML assertions that the SAML authority relied on to render the decision.
Resource 一个 URI 引用,它标识要试图访问的资源。A URI reference that identifies the resource to which access is sought.
SamlActions 该主题有权对 Resource 属性所表示的资源执行的操作集。The set of actions that the subject is authorized to perform on the resource represented by the Resource property.

构造函数

SamlAuthorizationDecisionStatement()

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

SamlAuthorizationDecisionStatement(SamlSubject, String, SamlAccessDecision, IEnumerable<SamlAction>)

初始化 SamlAuthorizationDecisionStatement 类的新实例。Initializes a new instance of the SamlAuthorizationDecisionStatement class. 使用指定的主题、资源、授权决定以及该主题试图对资源执行的操作。using the specified subject, resource, authorization decision, and the actions sought by the subject on the resource.

SamlAuthorizationDecisionStatement(SamlSubject, String, SamlAccessDecision, IEnumerable<SamlAction>, SamlEvidence)

初始化 SamlAuthorizationDecisionStatement 类的新实例。Initializes a new instance of the SamlAuthorizationDecisionStatement class. 使用指定的主题、资源、授权决定以及该主题试图对资源执行的操作。using the specified subject, resource, authorization decision, and the actions sought by the subject on the resource.

属性

AccessDecision

获取或设置由 SAML 授权机构做出的、与主题访问指定资源有关的授权决定。Gets or sets the authorization decision rendered by the SAML authority with respect to access by the subject to the specified resource.

ClaimType

获取安全声明的类型。Gets the type of security claim.

Evidence

获取或设置 SAML 授权机构在做出授权决定时所依赖的证据。Gets or sets 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.

Resource

SamlSecurityToken 安全令牌的主题要试图访问的资源。The resource to which access is sought by the subject of the SamlSecurityToken security token.

SamlActions

获取该主题有权对资源执行的操作集。Gets the set of actions that the subject is authorized to perform on the resource.

SamlSubject

获取或设置 SamlSecurityToken 安全令牌的主题。Gets or sets the subject of a SamlSecurityToken security token.

(继承自 SamlSubjectStatement)

方法

AddClaimsToList(IList<Claim>)

将基于此实例的属性的声明添加指定的声明集合。Adds claims based on the properties of this instance to the specified collection of claims.

CreatePolicy(ClaimSet, SamlSecurityTokenAuthenticator)

SamlSecurityToken 安全令牌创建授权策略。Creates an authorization policy for a SamlSecurityToken security token.

(继承自 SamlSubjectStatement)
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 读取器读取 SAML 授权语句。Reads the SAML authorization statement from the specified XML reader.

SetSubject(SamlSubject)

设置 SamlSecurityToken 安全令牌的主题。Sets the subject of a SamlSecurityToken security token.

(继承自 SamlSubjectStatement)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

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

将 SAML 授权语句写入指定的 XML 序列化程序。Writes the SAML authorization statement into the specified XML serializer.

适用于

另请参阅