SamlAttributeStatement Class

 

Contains a set of attributes associated with a particular SamlSubject.

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

System.Object
  System.IdentityModel.Tokens.SamlStatement
    System.IdentityModel.Tokens.SamlSubjectStatement
      System.IdentityModel.Tokens.SamlAttributeStatement

public class SamlAttributeStatement : SamlSubjectStatement

NameDescription
System_CAPS_pubmethodSamlAttributeStatement()

Initializes a new instance of the SamlAttributeStatement class.

System_CAPS_pubmethodSamlAttributeStatement(SamlSubject, IEnumerable<SamlAttribute>)

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

NameDescription
System_CAPS_pubpropertyAttributes

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

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the properties of this instance are read-only.(Overrides SamlSubjectStatement.IsReadOnly.)

System_CAPS_pubpropertySamlSubject

Gets or sets the subject of a SamlSecurityToken security token.(Inherited from SamlSubjectStatement.)

NameDescription
System_CAPS_protmethodAddClaimsToList(IList<Claim>)

Adds the specified set of claims as attributes to this SAML statement.(Overrides SamlSubjectStatement.AddClaimsToList(IList<Claim>).)

System_CAPS_pubmethodCreatePolicy(ClaimSet, SamlSecurityTokenAuthenticator)

Creates an authorization policy for a SamlSecurityToken security token.(Inherited from SamlSubjectStatement.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodMakeReadOnly()

Causes this instance to be read-only.(Overrides SamlSubjectStatement.MakeReadOnly().)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver)

Reads the SAML attribute statement from the specified XML reader.(Overrides SamlStatement.ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver).)

System_CAPS_protmethodSetSubject(SamlSubject)

Sets the subject of a SamlSecurityToken security token.(Inherited from SamlSubjectStatement.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer)

Writes the SAML attribute statement into the specified XML serializer.(Overrides SamlStatement.WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer).)

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.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: