Password Validation Service

IPasswordValidatorService in assembly SanteDB.Core.Api version 3.0.1980.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

Service Registration

...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Core.Security.RegexPasswordValidator, SanteDB.Core.Api, Version=3.0.1980.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