แก้ไข

แชร์ผ่าน


SamlSubjectStatement Class

Definition

Represents a claim for a SamlSecurityToken security token.

public ref class SamlSubjectStatement abstract : System::IdentityModel::Tokens::SamlStatement
public abstract class SamlSubjectStatement : System.IdentityModel.Tokens.SamlStatement
type SamlSubjectStatement = class
    inherit SamlStatement
Public MustInherit Class SamlSubjectStatement
Inherits SamlStatement
Inheritance
SamlSubjectStatement
Derived

Remarks

SamlSecurityToken security tokens specify their claims using SAML assertions, which can specify the subject of the security token. 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 SamlSubjectStatement. A SamlSubjectStatement asserts the principal that is the subject of the SamlSecurityToken security token. This principal is specified in the SamlSubject property.

Constructors

SamlSubjectStatement()

Initializes a new instance of the SamlSubjectStatement class.

SamlSubjectStatement(SamlSubject)

Initializes a new instance of the SamlSubjectStatement class using the specified subject.

Properties

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.

Methods

AddClaimsToList(IList<Claim>)

Adds a claim 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.

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)

When overridden in a derived class, reads the SAML statement from the specified XML reader.

(Inherited from SamlStatement)
SetSubject(SamlSubject)

Sets the subject of a SamlSecurityToken security token.

ToString()

Returns a string that represents the current object.

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

Writes the SAML statement into the specified XML serializer.

(Inherited from SamlStatement)

Applies to