SamlConstants Class

Represents a set of constants that are used to set properties of a SamlSecurityToken security token. This class cannot be inherited.

System.Object
  System.IdentityModel.Tokens.SamlConstants

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

public static class SamlConstants

The SamlConstants type exposes the following members.

  NameDescription
Public propertyStatic memberEmailNameGets the name of the attribute used to specify that the subject of a SAML assertion is specified as an e-mail address. This field is constant.
Public propertyStatic memberEmailNamespaceGets a URI that states the subject of a SAML assertion is specified as an e-mail address. This field is constant.
Public propertyStatic memberHolderOfKeyGets a URI that specifies that the recipient of a SAML security token should use the <ds:KeyInfo> element to confirm that the SOAP message was sent by the SAML assertion's subject. This field is constant.
Public propertyStatic memberMajorVersionValueGets the major version of the SAML specification that SamlSecurityToken security tokens conform to. This field is constant.
Public propertyStatic memberMinorVersionValueGets the minor version of the SAML specification used by SamlSecurityToken security tokens. This field is constant.
Public propertyStatic memberNamespaceGets the XML namespace in which SAML assertions are defined. This field is constant.
Public propertyStatic memberSenderVouchesGets a URI that specifies that additional information is not available for a recipient of a SAML security token to confirm that the SOAP message was sent by the SAML assertion's subject. This field is constant.
Public propertyStatic memberUserNameGets the name of the attribute used to specify that the subject of a SAML assertion is specified as a Windows domain account. This field is constant.
Public propertyStatic memberUserNameNamespaceGets a URI that states the subject of a SAML assertion is specified using a Windows domain account. This field is constant.
Top

  NameDescription
Public fieldStatic memberPrefixThe SAML namespace prefix. This field is constant.
Top

Use the SamlConstants class to set properties of a SAML assertion. Use the EmailNamespace and UserNameNamespace properties to set the NameFormat property. Use the HolderOfKey and SenderVouches to set the ConfirmationMethods property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft