Export (0) Print
Expand All

Saml2AuthenticationContext Class

.NET Framework 4.5

Represents the AuthnContext element specified in [Saml2Core, 2.7.2.2].

System.Object
  System.IdentityModel.Tokens.Saml2AuthenticationContext

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

public class Saml2AuthenticationContext

The Saml2AuthenticationContext type exposes the following members.

  NameDescription
Public methodSaml2AuthenticationContext()Initializes a new instance of the Saml2AuthenticationContext class.
Public methodSaml2AuthenticationContext(Uri)Initializes a new instance of the Saml2AuthenticationContext class with the specified class reference.
Public methodSaml2AuthenticationContext(Uri, Uri)Initializes a new instance of the Saml2AuthenticationContext class with the specified class reference and declaration reference.
Top

  NameDescription
Public propertyAuthenticatingAuthoritiesGets a collection of zero or more unique identifiers (URIs) of authentication authorities that were involved in the authentication of the principal (not including the assertion issuer, who is presumed to have been involved without being explicitly included in the collection). [Saml2Core, 2.7.2.2]
Public propertyClassReferenceGets or sets the URI reference that identifies an authentication context class that describes the authentication context declaration that follows. [Saml2Core, 2.7.2.2]
Public propertyDeclarationReferenceGets or sets a URI reference that identifies an authentication context declaration. [Saml2Core, 2.7.2.2]
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

This base class does not directly support any by-value authentication context declarations (represented in XML by the AuthnContextDecl element). To support by-value declarations, extend this class to support the data model and extend the Saml2SecurityTokenHandler class, overriding the ReadAuthenticationContext and WriteAuthenticationContext methods to read and write the by-value declaration.

For more information about the element that this class represents, see the SAML V2.0 Core specification.

.NET Framework

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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