SamlAuthorizationDecisionStatement Class

Definition

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
Inheritance
SamlAuthorizationDecisionStatement

Remarks

SamlSecurityToken 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 specification defines a set of SAML statement types and one of them is a 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.

Property Description
AccessDecision 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.
SamlActions The set of actions that the subject is authorized to perform on the resource represented by the Resource property.

Constructors

SamlAuthorizationDecisionStatement()

Initializes a new instance of the SamlAuthorizationDecisionStatement class.

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

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>)

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.

Properties

AccessDecision

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

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

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

Gets or sets the subject of a SamlSecurityToken security token.

(Inherited from SamlSubjectStatement)

Methods

AddClaimsToList(IList<Claim>)

Adds claims based on the properties of this instance to the specified collection of claims.

CreatePolicy(ClaimSet, SamlSecurityTokenAuthenticator)

Creates an authorization policy for a SamlSecurityToken security token.

(Inherited from SamlSubjectStatement)
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)
MakeReadOnly()

Causes this instance to be read-only.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver)

Reads the SAML authorization statement from the specified XML reader.

SetSubject(SamlSubject)

Sets the subject of a SamlSecurityToken security token.

(Inherited from SamlSubjectStatement)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer)

Writes the SAML authorization statement into the specified XML serializer.

Applies to

See also