Επεξεργασία

Κοινή χρήση μέσω


SamlAttributeStatement Class

Definition

Contains a set of attributes associated with a particular SamlSubject.

public ref class SamlAttributeStatement : System::IdentityModel::Tokens::SamlSubjectStatement
public class SamlAttributeStatement : System.IdentityModel.Tokens.SamlSubjectStatement
type SamlAttributeStatement = class
    inherit SamlSubjectStatement
Public Class SamlAttributeStatement
Inherits SamlSubjectStatement
Inheritance
SamlAttributeStatement

Remarks

The SamlAttributeStatement class corresponds to the <saml:AttributeStatement> XML element that is defined in the OASIS SAML 1.1 specification.

The claims for SamlSecurityToken security tokens are contained in SAML statements, which are in turn contained within a SamlAssertion. One such statement is the SamlAttributeStatement, which binds a set of arbitrary claims to a particular SamlSubject. The claims are represented as a collection of SamlAttribute and are stored in the Attributes property.

Constructors

SamlAttributeStatement()

Initializes a new instance of the SamlAttributeStatement class.

SamlAttributeStatement(SamlSubject, IEnumerable<SamlAttribute>)

Initializes a new instance of the SamlAttributeStatement class using the specified subject and set of attributes associated with the subject.

Properties

Attributes

Gets a collection of attributes associated with the subject of the SAML assertion.

IsReadOnly

Gets a value indicating whether the properties of this instance are read-only.

SamlSubject

Gets or sets the subject of a SamlSecurityToken security token.

(Inherited from SamlSubjectStatement)

Methods

AddClaimsToList(IList<Claim>)

Adds the specified set of claims as attributes to this SAML statement.

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 attribute 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 attribute statement into the specified XML serializer.

Applies to