Redigera

Dela via


Saml2AuthorizationDecisionStatement Class

Definition

Represents the <saml:AuthzDecisionStatement> element defined by SAML 2.0.

public ref class Saml2AuthorizationDecisionStatement : System::IdentityModel::Tokens::Saml2Statement
public class Saml2AuthorizationDecisionStatement : System.IdentityModel.Tokens.Saml2Statement
type Saml2AuthorizationDecisionStatement = class
    inherit Saml2Statement
Public Class Saml2AuthorizationDecisionStatement
Inherits Saml2Statement
Inheritance
Saml2AuthorizationDecisionStatement

Remarks

Saml2SecurityToken security tokens specify their claims using SAML assertions, which can specify whether a subject is authorized to access a specific resource. The claims in a SAML assertion are represented by SAML statements. The SAML 2.0 specification defines a set of SAML statement types and one of them is represented by the SamlAuthorizationDecisionStatement class. When specified in a SAML 2.0 assertion in the Saml2Assertion.Statements property, a SamlAuthorizationDecisionStatement asserts an authorization decision regarding access by the subject of the assertion to a specified resource. The subject of the SAML 2.0 assertion is specified by the Saml2Assertion.Subject property. The following table summarizes the properties that are associated with the authorization decision.

Property Description
Decision The authorization decision rendered by the SAML authority with respect to the resource represented by the Resource property.
Evidence A set of SAML assertions that the SAML authority relied on to render the decision.
Resource A URI reference that identifies the resource to which access is sought.
Actions The set of actions that the subject is authorized to perform on the resource represented by the Resource property. Each action is represented by an instance of Saml2Action.

For more information about the element that this class represents, see the following specification: Assertions and Protocols for the OASIS Security Assertion Markup Language (SAML) V2.0.

Constructors

Saml2AuthorizationDecisionStatement(Uri, SamlAccessDecision, IEnumerable<Saml2Action>)

Initializes a new instance of the Saml2AuthorizationDecisionStatement class with the specified decision for the specified actions on the specified resource.

Saml2AuthorizationDecisionStatement(Uri, SamlAccessDecision)

Initializes a new instance of the Saml2AuthorizationDecisionStatement class with the specified decision for the specified resource.

Fields

EmptyResource

Gets an empty URI reference. The reference may be used to set the Resource property. When used, it specifies the start of the current document.

Properties

Actions

Gets or sets the set of actions authorized to be performed on the specified resource.

Decision

Gets or sets the decision rendered by the SAML authority with respect to the specified resource.

Evidence

Gets or sets the set of assertions that the SAML authority relied on in making the decision. [Saml2Core, 2.7.4]

Resource

Gets or sets the URI reference that identifies the resource to which access authorization is sought.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to