Class SamlSchemaValidator
Validates XML against the SAML XML schemas.
Implements
Inherited Members
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 | 
  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SamlSchemaValidationException | Thrown when the attempt to perform SAML XML schema validation fails.  |