Share via


SamlAuthorizationDecisionStatement 類別

定義

表示 SamlSecurityToken 安全性權杖的宣告,它會判斷提示是否已做出有關主體存取指定資源的授權決策。

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 判斷提示來指定其宣告,而這種判斷指示可指定主體是否已獲得存取特定資源的授權。 SAML 判斷提示中的宣告會以 SAML 陳述式表示。 SAML 規格會定義一組 SAML 陳述式型別,而其中一個為 SamlAuthorizationDecisionStatementSamlAuthorizationDecisionStatement,它會判斷提示是否已做出有關主體存取指定資源的授權決策。 下表會摘要列出與授權決策關聯的屬性。

屬性 描述
AccessDecision SAML 授權單位根據 Resource 屬性提供之資源所呈現的授權決策。
Evidence SAML 授權單位在呈現決策時所仰賴的 SAML 判斷提示集合。
Resource URI 參考,其中會識別要請求其存取權的資源。
SamlActions 主體已獲授權在 Resource 屬性所提供之資源上執行的動作集合。

建構函式

SamlAuthorizationDecisionStatement()

初始化 SamlAuthorizationDecisionStatement 類別的新執行個體。

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

初始化 SamlAuthorizationDecisionStatement 類別的新執行個體。 使用指定的主體、資源、授權決策以及主體已向資源請求過的動作。

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

初始化 SamlAuthorizationDecisionStatement 類別的新執行個體。 使用指定的主體、資源、授權決策以及主體已向資源請求過的動作。

屬性

AccessDecision

取得 SAML 授權單位針對有關主體要存取之指定資源所呈現的授權決策。

ClaimType

取得安全性宣告的型別。

Evidence

取得或設定 SAML 授權單位呈現授權決策時所仰賴的辨識項。

IsReadOnly

取得值,這個值會指出這個執行個體的屬性是否是唯讀的。

Resource

SamlSecurityToken 安全性權杖主體已向其請求存取權的資源。

SamlActions

取得主體已獲授權在資源上執行的動作集合。

SamlSubject

取得或設定 SamlSecurityToken 安全性權杖的主體。

(繼承來源 SamlSubjectStatement)

方法

AddClaimsToList(IList<Claim>)

根據這個執行個體的屬性,將宣告新增至指定的宣告集合中。

CreatePolicy(ClaimSet, SamlSecurityTokenAuthenticator)

建立 SamlSecurityToken 安全性權杖的授權原則。

(繼承來源 SamlSubjectStatement)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MakeReadOnly()

使得這個執行個體成為唯讀的。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver)

從指定的 XML 讀取器讀取 SAML 授權陳述式。

SetSubject(SamlSubject)

設定 SamlSecurityToken 安全性權杖的主體。

(繼承來源 SamlSubjectStatement)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer)

將 SAML 授權陳述式寫入至指定的 XML 序列化程式。

適用於

另請參閱