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.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft