JwtSecurityTokenHandler.LoadCustomConfiguration Method
Loads custom configuration from an XmlNodeList. Override this method to provide custom handling of elements.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Overridable Sub LoadCustomConfiguration ( _
nodeList As XmlNodeList _
)
public virtual void LoadCustomConfiguration(
XmlNodeList nodeList
)
public:
virtual void LoadCustomConfiguration(
XmlNodeList^ nodeList
)
abstract LoadCustomConfiguration :
nodeList:XmlNodeList -> unit
override LoadCustomConfiguration :
nodeList:XmlNodeList -> unit
public function LoadCustomConfiguration(
nodeList : XmlNodeList
)
Parameters
nodeList
Type: System.Xml.XmlNodeListThe XML nodes that contain the custom configuration.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | 'nodelist' is null. |
ConfigurationErrorsException | XmlNodeList contains more than one element. -or-LocalName != 'jwtSecurityTokenRequirement'. |
Remarks
A single element 'jwtSecurityTokenRequirement' is supported. See JwtSecurityTokenRequirement for details.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.