Collapse the table of content
Expand the table of content
Expand Minimize

Saml2SecurityTokenHandler.ReadAuthenticationContext Method

.NET Framework 4.6 and 4.5

Reads the <saml:AuthnContext> element.

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

protected virtual Saml2AuthenticationContext ReadAuthenticationContext(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

An XmlReader positioned at the element to read.

Return Value

Type: System.IdentityModel.Tokens.Saml2AuthenticationContext
A Saml2AuthenticationContext that represents the AuthnContext element that is read.

ExceptionCondition
ArgumentNullException

reader is null.

The default implementation does not handle the optional <saml:AuthnContextDecl> element. To handle by-value authentication context declarations, override this method.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft