Password Validation Service

IPasswordValidatorService in assembly SanteDB.Core.Api version 2.1.151.0

Summary

Represents a password validation service

Operations

OperationResponse/ReturnInput/ParameterDescription

Validate

Boolean

String password

Validate the password

Implementations

RegexPasswordValidator - (SanteDB.Core.Api)

Represents a regular expression password validator

This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly

Default Password Validator - (SanteDB.Server.Core)

Represents a local regex password validator

Service Registration

...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Server.Core.Security.DefaultPasswordValidationService, SanteDB.Server.Core, Version=2.1.151.0, Culture=neutral, PublicKeyToken=null" />
		...
	</serviceProviders>

Example Implementation

/// Example Implementation
using SanteDB.Core.Security.Services;
/// Other usings here
public class MyPasswordValidatorService : SanteDB.Core.Security.Services.IPasswordValidatorService { 
	public String ServiceName => "My own IPasswordValidatorService service";
	/// <summary>
	/// Validate the password
	/// </summary>
	public Boolean Validate(String password){
		throw new System.NotImplementedException();
	}
}

References

Last updated