Export (0) Print
Expand All

Saml2AuthenticationContext Class

.NET Framework 4.5

Represents the AuthnContext element specified in [Saml2Core,].


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

public class Saml2AuthenticationContext

The Saml2AuthenticationContext type exposes the following members.

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.

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,]
Public propertyClassReferenceGets or sets the URI reference that identifies an authentication context class that describes the authentication context declaration that follows. [Saml2Core,]
Public propertyDeclarationReferenceGets or sets a URI reference that identifies an authentication context declaration. [Saml2Core,]

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.)

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.6, 4.5

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