แก้ไข

แชร์ผ่าน


SamlSubject Class

Definition

Represents the subject of a SAML security token.

public ref class SamlSubject
public class SamlSubject
type SamlSubject = class
Public Class SamlSubject
Inheritance
SamlSubject

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 using a SamlSubject class.

Constructors

SamlSubject()

Initializes a new instance of the SamlSubject class.

SamlSubject(String, String, String, IEnumerable<String>, String, SecurityKeyIdentifier)

Initializes a new instance of the SamlSubject class using the specified name, the domain in which the name resides, the format the name is in, authentication protocols, additional authentication information, and a key identifier.

SamlSubject(String, String, String)

Initializes a new instance of the SamlSubject class using the specified name, the domain in which the name resides, and the format the name is in.

Properties

ConfirmationMethods

Gets a set of URI references that identify the protocols that should be used to authenticate the subject.

Crypto

Gets or sets the cryptographic key that is used to verify the digital signature that is identified by this SAML subject statement.

IsReadOnly

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

KeyIdentifier

Gets or sets a key identifier that provides access to a cryptographic key held by the subject of the SAML security token.

Name

Gets or sets the subject name of a SAML security token.

NameClaimType

Gets the claim type that is used to represent the subject name of a SAML security token.

NameFormat

Gets or sets a URI reference that represents the format that the subject name of a SAML security token is in.

NameQualifier

Gets or sets the domain in which the subject name of a SAML security token resides in.

SubjectConfirmationData

Gets or sets additional authentication information that can be used by authentication protocols.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExtractClaims()

Gets a set of claims using the properties of this class.

ExtractSubjectKeyClaimSet(SamlSecurityTokenAuthenticator)

Gets a set of claims using the properties of this class and the specified SAML security token authenticator.

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:Subject> element from the specified XML reader.

ToString()

Returns a string that represents the current object.

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

Writes the <saml:Subject> element into the specified XML serializer.

Applies to

See also