Export (0) Print
Expand All

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

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.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public SamlAuthorizationDecisionStatement(
	SamlSubject samlSubject,
	string resource,
	SamlAccessDecision accessDecision,
	IEnumerable<SamlAction> samlActions
)

Parameters

samlSubject
Type: System.IdentityModel.Tokens.SamlSubject

A SamlSubject that represents the subject of the claim. Sets the SamlSubject property.

resource
Type: System.String

A URI reference that identifies the resource to which access is sought. Sets the Resource property.

accessDecision
Type: System.IdentityModel.Tokens.SamlAccessDecision

A SamlAccessDecision that specifies the authorization decision rendered by the SAML authority with respect to access by the subject to the specified resource. Sets the AccessDecision property.

samlActions
Type: System.Collections.Generic.IEnumerable<SamlAction>

An IEnumerable<T> of type SamlAction that specifies the set of actions that the subject is authorized to perform on the resource. Sets the SamlActions property.

ExceptionCondition
ArgumentNullException

samlActions is null.

-or-

samlActions contains a member that is null.

-or-

samlSubject is null.

ArgumentException

authorityBindings contains a member that is null.

-or-

resource is null or empty.

This constructor initializes the IsReadOnly property to false, the ClaimType property to http://schemas.microsoft.com/mb/2005/09/ClaimType/SamlAuthorizationDecision, and the Evidence property to null.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft