Show / Hide Table of Contents

Class SamlSchemaValidator

Validates XML against the SAML XML schemas.

Inheritance
object
SamlSchemaValidator
Implements
ISamlSchemaValidator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ComponentSpace.Saml2.Utility
Assembly: ComponentSpace.Saml2.dll
Syntax
public class SamlSchemaValidator : ISamlSchemaValidator

Constructors

SamlSchemaValidator(IOptionsMonitor<SamlSchemaValidatorOptions>, ILoggerFactory)

Initializes a new instance of the SamlSchemaValidator class.

Declaration
public SamlSchemaValidator(IOptionsMonitor<SamlSchemaValidatorOptions> samlSchemaValidatorOptions, ILoggerFactory loggerFactory)
Parameters
Type Name Description
IOptionsMonitor<SamlSchemaValidatorOptions> samlSchemaValidatorOptions

The SAML schema validtor options.

ILoggerFactory loggerFactory

The logger factory.

Properties

Errors

Gets the list of XML schema errors.

Declaration
public IList<string> Errors { get; }
Property Value
Type Description
IList<string>

The list of XML schema errors.

Warnings

Gets the list of XML schema warnings.

Declaration
public IList<string> Warnings { get; }
Property Value
Type Description
IList<string>

The list of XML schema warnings.

Methods

Validate(XmlElement)

Validates the XML against the SAML XML schemas

Declaration
public bool Validate(XmlElement xmlElement)
Parameters
Type Name Description
XmlElement xmlElement

The XML to validate.

Returns
Type Description
bool

true if the XML validates against the SAML XML schemas; otherwise false.

Exceptions
Type Condition
SamlSchemaValidationException

Thrown when the attempt to perform SAML XML schema validation fails.

Implements

ISamlSchemaValidator
In this article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2025. All rights reserved.