SamlSecurityTokenHandler SamlSecurityTokenHandler SamlSecurityTokenHandler SamlSecurityTokenHandler Class

Definition

Represents a security token handler that creates security tokens from SAML 1.1 Assertions.

public ref class SamlSecurityTokenHandler : System::IdentityModel::Tokens::SecurityTokenHandler
public class SamlSecurityTokenHandler : System.IdentityModel.Tokens.SecurityTokenHandler
type SamlSecurityTokenHandler = class
    inherit SecurityTokenHandler
Public Class SamlSecurityTokenHandler
Inherits SecurityTokenHandler
Inheritance
SamlSecurityTokenHandlerSamlSecurityTokenHandlerSamlSecurityTokenHandlerSamlSecurityTokenHandler

Remarks

The SamlSecurityTokenHandler class serializes and deserializes security tokens backed by SAML 1.1 Assertions into SamlSecurityToken objects. Security token handlers are responsible for creating, reading, writing, and validating tokens.

You can configure a security token service (STS) or relying party (RP) application to process SAML 1.1 Assertion-backed security tokens by adding an instance of the SamlSecurityTokenHandler class to the SecurityTokenHandlerCollection object configured for the service (or application). This can be done either programmatically or in the configuration file. The handler itself is configured from the configuration specified for the collection through the collection's Configuration property when it is added to the collection. While it is possible to configure the handler individually by setting its Configuration property, this is not normally necessary; however, if the handler must be configured individually, the property should be set after the handler is added to the collection.

For many scenarios, the SamlSecurityTokenHandler class can be used as-is; however, the class provides many extension points through the methods it exposes. By deriving from the SamlSecurityTokenHandler and overriding specific methods, you can modify the functionality of the token processing provided in the default implementation, or you can add processing for extensions to the SAML Assertion specification that may be needed in some custom scenarios.

Constructors

SamlSecurityTokenHandler() SamlSecurityTokenHandler() SamlSecurityTokenHandler() SamlSecurityTokenHandler()

Initializes a new instance of the SamlSecurityTokenHandler class with default security token requirements.

SamlSecurityTokenHandler(SamlSecurityTokenRequirement) SamlSecurityTokenHandler(SamlSecurityTokenRequirement) SamlSecurityTokenHandler(SamlSecurityTokenRequirement) SamlSecurityTokenHandler(SamlSecurityTokenRequirement)

Initializes a new instance of the SamlSecurityTokenHandler class with the specified security token requirements.

Fields

Assertion Assertion Assertion Assertion

urn:oasis:names:tc:SAML:1.0:assertion

BearerConfirmationMethod BearerConfirmationMethod BearerConfirmationMethod BearerConfirmationMethod

urn:oasis:names:tc:SAML:1.0:cm:bearer

Namespace Namespace Namespace Namespace

urn:oasis:names:tc:SAML:1.0

UnspecifiedAuthenticationMethod UnspecifiedAuthenticationMethod UnspecifiedAuthenticationMethod UnspecifiedAuthenticationMethod

urn:oasis:names:tc:SAML:1.0:am:unspecified

Properties

CanValidateToken CanValidateToken CanValidateToken CanValidateToken

Gets a value that indicates if this handler can validate tokens of type SamlSecurityToken.

CanWriteToken CanWriteToken CanWriteToken CanWriteToken

Gets a value that indicates whether this handler can serialize tokens of type SamlSecurityToken.

CertificateValidator CertificateValidator CertificateValidator CertificateValidator

Gets or sets the X.509 certificate validator that is used by the current instance to validate X.509 certificates.

Configuration Configuration Configuration Configuration

Gets or sets the SecurityTokenHandlerConfiguration object that provides configuration for the current instance.

(Inherited from SecurityTokenHandler)
ContainingCollection ContainingCollection ContainingCollection ContainingCollection

Gets the token handler collection that contains the current instance.

(Inherited from SecurityTokenHandler)
KeyInfoSerializer KeyInfoSerializer KeyInfoSerializer KeyInfoSerializer

Gets or sets the security token serializer that is used to serialize and deserialize key identifiers.

SamlSecurityTokenRequirement SamlSecurityTokenRequirement SamlSecurityTokenRequirement SamlSecurityTokenRequirement

Gets or sets the security token requirements for this instance.

TokenType TokenType TokenType TokenType

Gets the token type supported by this handler.

Methods

AddDelegateToAttributes(ClaimsIdentity, ICollection<SamlAttribute>, SecurityTokenDescriptor) AddDelegateToAttributes(ClaimsIdentity, ICollection<SamlAttribute>, SecurityTokenDescriptor) AddDelegateToAttributes(ClaimsIdentity, ICollection<SamlAttribute>, SecurityTokenDescriptor) AddDelegateToAttributes(ClaimsIdentity, ICollection<SamlAttribute>, SecurityTokenDescriptor)

Adds all of the delegates associated with the ActAs subject into the attribute collection.

CanReadKeyIdentifierClause(XmlReader) CanReadKeyIdentifierClause(XmlReader) CanReadKeyIdentifierClause(XmlReader) CanReadKeyIdentifierClause(XmlReader)

Returns a value that indicates whether the XML element referred to by the specified XML reader is a key identifier clause that can be deserialized by this instance.

(Inherited from SecurityTokenHandler)
CanReadToken(String) CanReadToken(String) CanReadToken(String) CanReadToken(String)

Returns a value that indicates whether the specified string can be deserialized as a token of the type processed by this instance.

(Inherited from SecurityTokenHandler)
CanReadToken(XmlReader) CanReadToken(XmlReader) CanReadToken(XmlReader) CanReadToken(XmlReader)

Indicates whether the current XML element can be read as a token of the type handled by this instance.

CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause)

Returns a value that indicates whether the specified key identifier clause can be serialized by this instance.

(Inherited from SecurityTokenHandler)
CollectAttributeValues(ICollection<SamlAttribute>) CollectAttributeValues(ICollection<SamlAttribute>) CollectAttributeValues(ICollection<SamlAttribute>) CollectAttributeValues(ICollection<SamlAttribute>)

Collects attributes with a common claim type, claim value type, and original issuer into a single attribute with multiple values.

CreateAdvice(SecurityTokenDescriptor) CreateAdvice(SecurityTokenDescriptor) CreateAdvice(SecurityTokenDescriptor) CreateAdvice(SecurityTokenDescriptor)

When overridden in a derived class, creates a SamlAdvice object for the assertion.

CreateAssertion(String, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>) CreateAssertion(String, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>) CreateAssertion(String, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>) CreateAssertion(String, SamlConditions, SamlAdvice, IEnumerable<SamlStatement>)

Creates a SamlAssertion object by using the specified issuer, conditions, advice and statements. You can override this method to customize the parameters used to create the assertion.

CreateAttribute(Claim, SecurityTokenDescriptor) CreateAttribute(Claim, SecurityTokenDescriptor) CreateAttribute(Claim, SecurityTokenDescriptor) CreateAttribute(Claim, SecurityTokenDescriptor)

Creates a SamlAttribute object from a claim.

CreateAttributeStatement(SamlSubject, ClaimsIdentity, SecurityTokenDescriptor) CreateAttributeStatement(SamlSubject, ClaimsIdentity, SecurityTokenDescriptor) CreateAttributeStatement(SamlSubject, ClaimsIdentity, SecurityTokenDescriptor) CreateAttributeStatement(SamlSubject, ClaimsIdentity, SecurityTokenDescriptor)

Creates a SamlAttributeStatement object from a token descriptor.

CreateAuthenticationStatement(SamlSubject, AuthenticationInformation, SecurityTokenDescriptor) CreateAuthenticationStatement(SamlSubject, AuthenticationInformation, SecurityTokenDescriptor) CreateAuthenticationStatement(SamlSubject, AuthenticationInformation, SecurityTokenDescriptor) CreateAuthenticationStatement(SamlSubject, AuthenticationInformation, SecurityTokenDescriptor)

Creates a SAML 1.1 authentication statement from the specified authentication information.

CreateClaims(SamlSecurityToken) CreateClaims(SamlSecurityToken) CreateClaims(SamlSecurityToken) CreateClaims(SamlSecurityToken)

Creates claims from a SAML 1.1 token.

CreateConditions(Lifetime, String, SecurityTokenDescriptor) CreateConditions(Lifetime, String, SecurityTokenDescriptor) CreateConditions(Lifetime, String, SecurityTokenDescriptor) CreateConditions(Lifetime, String, SecurityTokenDescriptor)

Creates the conditions for the assertion.

CreateSamlSubject(SecurityTokenDescriptor) CreateSamlSubject(SecurityTokenDescriptor) CreateSamlSubject(SecurityTokenDescriptor) CreateSamlSubject(SecurityTokenDescriptor)

Creates a SAML 1.1 subject for the assertion.

CreateSecurityTokenReference(SecurityToken, Boolean) CreateSecurityTokenReference(SecurityToken, Boolean) CreateSecurityTokenReference(SecurityToken, Boolean) CreateSecurityTokenReference(SecurityToken, Boolean)

Creates the security token reference when the token is not attached to the message.

CreateStatements(SecurityTokenDescriptor) CreateStatements(SecurityTokenDescriptor) CreateStatements(SecurityTokenDescriptor) CreateStatements(SecurityTokenDescriptor)

Creates SAML 1.1 statements to be included in the assertion.

CreateToken(SecurityTokenDescriptor) CreateToken(SecurityTokenDescriptor) CreateToken(SecurityTokenDescriptor) CreateToken(SecurityTokenDescriptor)

Creates a security token based on a token descriptor.

CreateWindowsIdentity(String) CreateWindowsIdentity(String) CreateWindowsIdentity(String) CreateWindowsIdentity(String)

Creates a WindowsIdentity object using the specified User Principal Name (UPN).

CreateXmlStringFromAttributes(IEnumerable<SamlAttribute>) CreateXmlStringFromAttributes(IEnumerable<SamlAttribute>) CreateXmlStringFromAttributes(IEnumerable<SamlAttribute>) CreateXmlStringFromAttributes(IEnumerable<SamlAttribute>)

Builds an XML formatted string from a collection of SAML 1.1 attributes that represent the Actor.

DenormalizeAuthenticationType(String) DenormalizeAuthenticationType(String) DenormalizeAuthenticationType(String) DenormalizeAuthenticationType(String)

Returns the SAML11 authentication method identifier that matches the specified normalized value for a SAML authentication method.

DetectReplayedToken(SecurityToken) DetectReplayedToken(SecurityToken) DetectReplayedToken(SecurityToken) DetectReplayedToken(SecurityToken)

Throws an exception if the specified token already exists in the token replay cache; otherwise the token is added to the cache.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
FindUpn(ClaimsIdentity) FindUpn(ClaimsIdentity) FindUpn(ClaimsIdentity) FindUpn(ClaimsIdentity)

Finds the UPN claim value in the specified ClaimsIdentity object for the purpose of mapping the identity to a WindowsIdentity object.

GetEncryptingCredentials(SecurityTokenDescriptor) GetEncryptingCredentials(SecurityTokenDescriptor) GetEncryptingCredentials(SecurityTokenDescriptor) GetEncryptingCredentials(SecurityTokenDescriptor)

Gets the token encrypting credentials. Override this method to change the token encrypting credentials.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetSigningCredentials(SecurityTokenDescriptor) GetSigningCredentials(SecurityTokenDescriptor) GetSigningCredentials(SecurityTokenDescriptor) GetSigningCredentials(SecurityTokenDescriptor)

Gets the credentials for signing the assertion.

GetTokenReplayCacheEntryExpirationTime(SamlSecurityToken) GetTokenReplayCacheEntryExpirationTime(SamlSecurityToken) GetTokenReplayCacheEntryExpirationTime(SamlSecurityToken) GetTokenReplayCacheEntryExpirationTime(SamlSecurityToken)

Returns the time until which the token should be held in the token replay cache.

GetTokenTypeIdentifiers() GetTokenTypeIdentifiers() GetTokenTypeIdentifiers() GetTokenTypeIdentifiers()

Gets the token type identifier(s) supported by this handler.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadCustomConfiguration(XmlNodeList) LoadCustomConfiguration(XmlNodeList) LoadCustomConfiguration(XmlNodeList) LoadCustomConfiguration(XmlNodeList)

Loads custom configuration from XML.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
NormalizeAuthenticationType(String) NormalizeAuthenticationType(String) NormalizeAuthenticationType(String) NormalizeAuthenticationType(String)

Returns the normalized value that matches a SAML 1.1 authentication method identifier.

ProcessAttributeStatement(SamlAttributeStatement, ClaimsIdentity, String) ProcessAttributeStatement(SamlAttributeStatement, ClaimsIdentity, String) ProcessAttributeStatement(SamlAttributeStatement, ClaimsIdentity, String) ProcessAttributeStatement(SamlAttributeStatement, ClaimsIdentity, String)

Creates claims from a SAML 1.1 attribute statement and adds them to the specified subject.

ProcessAuthenticationStatement(SamlAuthenticationStatement, ClaimsIdentity, String) ProcessAuthenticationStatement(SamlAuthenticationStatement, ClaimsIdentity, String) ProcessAuthenticationStatement(SamlAuthenticationStatement, ClaimsIdentity, String) ProcessAuthenticationStatement(SamlAuthenticationStatement, ClaimsIdentity, String)

Creates claims from a SAML 1.1 authentication statement and adds them to the specified subject.

ProcessAuthorizationDecisionStatement(SamlAuthorizationDecisionStatement, ClaimsIdentity, String) ProcessAuthorizationDecisionStatement(SamlAuthorizationDecisionStatement, ClaimsIdentity, String) ProcessAuthorizationDecisionStatement(SamlAuthorizationDecisionStatement, ClaimsIdentity, String) ProcessAuthorizationDecisionStatement(SamlAuthorizationDecisionStatement, ClaimsIdentity, String)

Creates claims from a SAML 1.1 authorization decision statement and adds them to the specified subject.

ProcessSamlSubject(SamlSubject, ClaimsIdentity, String) ProcessSamlSubject(SamlSubject, ClaimsIdentity, String) ProcessSamlSubject(SamlSubject, ClaimsIdentity, String) ProcessSamlSubject(SamlSubject, ClaimsIdentity, String)

Creates claims from the SAML 1.1 subject and adds them to the specified subject.

ProcessStatement(IList<SamlStatement>, ClaimsIdentity, String) ProcessStatement(IList<SamlStatement>, ClaimsIdentity, String) ProcessStatement(IList<SamlStatement>, ClaimsIdentity, String) ProcessStatement(IList<SamlStatement>, ClaimsIdentity, String)

Creates claims from a collection of SAML 1.1 statements and adds them to the specified subject.

ReadAction(XmlReader) ReadAction(XmlReader) ReadAction(XmlReader) ReadAction(XmlReader)

Reads the <saml:Action> element.

ReadAdvice(XmlReader) ReadAdvice(XmlReader) ReadAdvice(XmlReader) ReadAdvice(XmlReader)

Reads the <saml:Advice> element.

ReadAssertion(XmlReader) ReadAssertion(XmlReader) ReadAssertion(XmlReader) ReadAssertion(XmlReader)

Reads the <saml:Assertion> element.

ReadAttribute(XmlReader) ReadAttribute(XmlReader) ReadAttribute(XmlReader) ReadAttribute(XmlReader)

Reads the <saml:Attribute> element.

ReadAttributeStatement(XmlReader) ReadAttributeStatement(XmlReader) ReadAttributeStatement(XmlReader) ReadAttributeStatement(XmlReader)

Reads the <saml:AttributeStatement> element, or a <saml:Statement> element that specifies an xsi:type of saml:AttributeStatementType.

ReadAttributeValue(XmlReader, SamlAttribute) ReadAttributeValue(XmlReader, SamlAttribute) ReadAttributeValue(XmlReader, SamlAttribute) ReadAttributeValue(XmlReader, SamlAttribute)

Reads an attribute value.

ReadAudienceRestrictionCondition(XmlReader) ReadAudienceRestrictionCondition(XmlReader) ReadAudienceRestrictionCondition(XmlReader) ReadAudienceRestrictionCondition(XmlReader)

Reads the <saml:AudienceRestrictionCondition> element from the specified XML reader.

ReadAuthenticationStatement(XmlReader) ReadAuthenticationStatement(XmlReader) ReadAuthenticationStatement(XmlReader) ReadAuthenticationStatement(XmlReader)

Reads the <saml:AuthnStatement> element or a <saml:Statement> element that specifies an xsi:type of saml:AuthnStatementType.

ReadAuthorityBinding(XmlReader) ReadAuthorityBinding(XmlReader) ReadAuthorityBinding(XmlReader) ReadAuthorityBinding(XmlReader)

Read the <saml:AuthorityBinding> element.

ReadAuthorizationDecisionStatement(XmlReader) ReadAuthorizationDecisionStatement(XmlReader) ReadAuthorizationDecisionStatement(XmlReader) ReadAuthorizationDecisionStatement(XmlReader)

Reads the <saml:AuthzDecisionStatement> element or a <saml:Statement> element that specifies an xsi:type of saml:AuthzDecisionStatementType.

ReadCondition(XmlReader) ReadCondition(XmlReader) ReadCondition(XmlReader) ReadCondition(XmlReader)

Reads a saml:AudienceRestrictionCondition or a saml:DoNotCacheCondition from the specified reader

ReadConditions(XmlReader) ReadConditions(XmlReader) ReadConditions(XmlReader) ReadConditions(XmlReader)

Reads the <saml:Conditions> element.

ReadDoNotCacheCondition(XmlReader) ReadDoNotCacheCondition(XmlReader) ReadDoNotCacheCondition(XmlReader) ReadDoNotCacheCondition(XmlReader)

Reads a saml:DoNotCacheCondition element from the specified XML reader.

ReadEvidence(XmlReader) ReadEvidence(XmlReader) ReadEvidence(XmlReader) ReadEvidence(XmlReader)

Reads the <saml:Evidence> element.

ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader) ReadKeyIdentifierClause(XmlReader)

When overridden in a derived class, deserializes the XML referenced by the specified XML reader to a key identifier clause that references a token processed by the derived class.

(Inherited from SecurityTokenHandler)
ReadSigningKeyInfo(XmlReader, SamlAssertion) ReadSigningKeyInfo(XmlReader, SamlAssertion) ReadSigningKeyInfo(XmlReader, SamlAssertion) ReadSigningKeyInfo(XmlReader, SamlAssertion)

Deserializes the SAML Signing KeyInfo.

ReadStatement(XmlReader) ReadStatement(XmlReader) ReadStatement(XmlReader) ReadStatement(XmlReader)

Reads the <saml:Statement> element.

ReadSubject(XmlReader) ReadSubject(XmlReader) ReadSubject(XmlReader) ReadSubject(XmlReader)

Reads the <saml:Subject> element.

ReadSubjectKeyInfo(XmlReader) ReadSubjectKeyInfo(XmlReader) ReadSubjectKeyInfo(XmlReader) ReadSubjectKeyInfo(XmlReader)

Deserializes the SAML Subject <ds:KeyInfo> element.

ReadToken(String) ReadToken(String) ReadToken(String) ReadToken(String)

When overridden in a derived class, deserializes the specified string to a token of the type processed by the derived class.

(Inherited from SecurityTokenHandler)
ReadToken(XmlReader) ReadToken(XmlReader) ReadToken(XmlReader) ReadToken(XmlReader)

Reads a SAML 1.1 token from the specified stream.

ReadToken(XmlReader, SecurityTokenResolver) ReadToken(XmlReader, SecurityTokenResolver) ReadToken(XmlReader, SecurityTokenResolver) ReadToken(XmlReader, SecurityTokenResolver)

When overridden in a derived class, deserializes the XML referenced by the specified XML reader to a token of the type processed by the derived class by using the specified token resolver.

(Inherited from SecurityTokenHandler)
ResolveIssuerToken(SamlAssertion, SecurityTokenResolver) ResolveIssuerToken(SamlAssertion, SecurityTokenResolver) ResolveIssuerToken(SamlAssertion, SecurityTokenResolver) ResolveIssuerToken(SamlAssertion, SecurityTokenResolver)

Resolves the Signing Key Identifier to a SecurityToken.

ResolveSubjectKeyIdentifier(SecurityKeyIdentifier) ResolveSubjectKeyIdentifier(SecurityKeyIdentifier) ResolveSubjectKeyIdentifier(SecurityKeyIdentifier) ResolveSubjectKeyIdentifier(SecurityKeyIdentifier)

Resolves the SecurityKeyIdentifier specified in a saml:Subject element.

SetDelegateFromAttribute(SamlAttribute, ClaimsIdentity, String) SetDelegateFromAttribute(SamlAttribute, ClaimsIdentity, String) SetDelegateFromAttribute(SamlAttribute, ClaimsIdentity, String) SetDelegateFromAttribute(SamlAttribute, ClaimsIdentity, String)

This method gets called when a special type of SamlAttribute is detected. The SamlAttribute passed in wraps a SamlAttribute that contains a collection of attribute values (in the AttributeValues property), each of which will get mapped to a claim. All of the claims will be returned in an ClaimsIdentity with the specified issuer.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TraceTokenValidationFailure(SecurityToken, String) TraceTokenValidationFailure(SecurityToken, String) TraceTokenValidationFailure(SecurityToken, String) TraceTokenValidationFailure(SecurityToken, String)

Traces the failure event during the validation of security tokens when tracing is enabled.

(Inherited from SecurityTokenHandler)
TraceTokenValidationSuccess(SecurityToken) TraceTokenValidationSuccess(SecurityToken) TraceTokenValidationSuccess(SecurityToken) TraceTokenValidationSuccess(SecurityToken)

Traces the successful validation of security tokens event when tracing is enabled.

(Inherited from SecurityTokenHandler)
TryResolveIssuerToken(SamlAssertion, SecurityTokenResolver, SecurityToken) TryResolveIssuerToken(SamlAssertion, SecurityTokenResolver, SecurityToken) TryResolveIssuerToken(SamlAssertion, SecurityTokenResolver, SecurityToken) TryResolveIssuerToken(SamlAssertion, SecurityTokenResolver, SecurityToken)

Resolves the Signing Key Identifier to a SecurityToken.

ValidateConditions(SamlConditions, Boolean) ValidateConditions(SamlConditions, Boolean) ValidateConditions(SamlConditions, Boolean) ValidateConditions(SamlConditions, Boolean)

Validates the specified SamlConditions object.

ValidateToken(SecurityToken) ValidateToken(SecurityToken) ValidateToken(SecurityToken) ValidateToken(SecurityToken)

Validates the token data and returns its claims.

WriteAction(XmlWriter, SamlAction) WriteAction(XmlWriter, SamlAction) WriteAction(XmlWriter, SamlAction) WriteAction(XmlWriter, SamlAction)

Writes the <saml:Action> element.

WriteAdvice(XmlWriter, SamlAdvice) WriteAdvice(XmlWriter, SamlAdvice) WriteAdvice(XmlWriter, SamlAdvice) WriteAdvice(XmlWriter, SamlAdvice)

Writes the <saml:Advice> element.

WriteAssertion(XmlWriter, SamlAssertion) WriteAssertion(XmlWriter, SamlAssertion) WriteAssertion(XmlWriter, SamlAssertion) WriteAssertion(XmlWriter, SamlAssertion)

Serializes the specified SAML assertion to the specified XML writer.

WriteAttribute(XmlWriter, SamlAttribute) WriteAttribute(XmlWriter, SamlAttribute) WriteAttribute(XmlWriter, SamlAttribute) WriteAttribute(XmlWriter, SamlAttribute)

Writes the <saml:Attribute> element.

WriteAttributeStatement(XmlWriter, SamlAttributeStatement) WriteAttributeStatement(XmlWriter, SamlAttributeStatement) WriteAttributeStatement(XmlWriter, SamlAttributeStatement) WriteAttributeStatement(XmlWriter, SamlAttributeStatement)

Writes the <saml:AttributeStatement> element.

WriteAttributeValue(XmlWriter, String, SamlAttribute) WriteAttributeValue(XmlWriter, String, SamlAttribute) WriteAttributeValue(XmlWriter, String, SamlAttribute) WriteAttributeValue(XmlWriter, String, SamlAttribute)

Writes the saml:Attribute value.

WriteAudienceRestrictionCondition(XmlWriter, SamlAudienceRestrictionCondition) WriteAudienceRestrictionCondition(XmlWriter, SamlAudienceRestrictionCondition) WriteAudienceRestrictionCondition(XmlWriter, SamlAudienceRestrictionCondition) WriteAudienceRestrictionCondition(XmlWriter, SamlAudienceRestrictionCondition)

Writes the <saml:AudienceRestriction> element.

WriteAuthenticationStatement(XmlWriter, SamlAuthenticationStatement) WriteAuthenticationStatement(XmlWriter, SamlAuthenticationStatement) WriteAuthenticationStatement(XmlWriter, SamlAuthenticationStatement) WriteAuthenticationStatement(XmlWriter, SamlAuthenticationStatement)

Writes the <saml:AuthnStatement> element.

WriteAuthorityBinding(XmlWriter, SamlAuthorityBinding) WriteAuthorityBinding(XmlWriter, SamlAuthorityBinding) WriteAuthorityBinding(XmlWriter, SamlAuthorityBinding) WriteAuthorityBinding(XmlWriter, SamlAuthorityBinding)

Writes the <saml:AuthorityBinding> element.

WriteAuthorizationDecisionStatement(XmlWriter, SamlAuthorizationDecisionStatement) WriteAuthorizationDecisionStatement(XmlWriter, SamlAuthorizationDecisionStatement) WriteAuthorizationDecisionStatement(XmlWriter, SamlAuthorizationDecisionStatement) WriteAuthorizationDecisionStatement(XmlWriter, SamlAuthorizationDecisionStatement)

Writes the <saml:AuthzDecisionStatement> element.

WriteCondition(XmlWriter, SamlCondition) WriteCondition(XmlWriter, SamlCondition) WriteCondition(XmlWriter, SamlCondition) WriteCondition(XmlWriter, SamlCondition)

Serializes the specified SamlCondition object.

WriteConditions(XmlWriter, SamlConditions) WriteConditions(XmlWriter, SamlConditions) WriteConditions(XmlWriter, SamlConditions) WriteConditions(XmlWriter, SamlConditions)

Writes the <saml:Conditions> element.

WriteDoNotCacheCondition(XmlWriter, SamlDoNotCacheCondition) WriteDoNotCacheCondition(XmlWriter, SamlDoNotCacheCondition) WriteDoNotCacheCondition(XmlWriter, SamlDoNotCacheCondition) WriteDoNotCacheCondition(XmlWriter, SamlDoNotCacheCondition)

Writes the <saml:DoNotCacheCondition> element.

WriteEvidence(XmlWriter, SamlEvidence) WriteEvidence(XmlWriter, SamlEvidence) WriteEvidence(XmlWriter, SamlEvidence) WriteEvidence(XmlWriter, SamlEvidence)

Writes the <saml:Evidence> element.

WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause)

When overridden in a derived class, serializes the specified key identifier clause to XML. The key identifier clause must be of the type supported by the derived class.

(Inherited from SecurityTokenHandler)
WriteSigningKeyInfo(XmlWriter, SecurityKeyIdentifier) WriteSigningKeyInfo(XmlWriter, SecurityKeyIdentifier) WriteSigningKeyInfo(XmlWriter, SecurityKeyIdentifier) WriteSigningKeyInfo(XmlWriter, SecurityKeyIdentifier)

Writes the Signing <ds:KeyInfo> element using the specified XML writer.

WriteStatement(XmlWriter, SamlStatement) WriteStatement(XmlWriter, SamlStatement) WriteStatement(XmlWriter, SamlStatement) WriteStatement(XmlWriter, SamlStatement)

Writes a SamlStatement.

WriteSubject(XmlWriter, SamlSubject) WriteSubject(XmlWriter, SamlSubject) WriteSubject(XmlWriter, SamlSubject) WriteSubject(XmlWriter, SamlSubject)

Writes the <saml:Subject> element.

WriteSubjectKeyInfo(XmlWriter, SecurityKeyIdentifier) WriteSubjectKeyInfo(XmlWriter, SecurityKeyIdentifier) WriteSubjectKeyInfo(XmlWriter, SecurityKeyIdentifier) WriteSubjectKeyInfo(XmlWriter, SecurityKeyIdentifier)

Serializes the Subject <ds:KeyInfo> element using the specified XML writer.

WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken)

When overridden in a derived class, serializes the specified security token to a string. The token must be of the type processed by the derived class.

(Inherited from SecurityTokenHandler)
WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken)

Writes a Saml Token to the specified XML writer.

Applies to

See also