Click or drag to resize

AdoCertificateIdentityProviderAddIdentityMap Method

Maps identityToBeMapped to authenticationCertificate so that calls to Authenticate(X509Certificate2) may establish security principals

Namespace: SanteDB.Persistence.Data.Services
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public void AddIdentityMap(
	IIdentity identityToBeMapped,
	X509Certificate2 authenticationCertificate,
	IPrincipal authenticatedPrincipal
)

Parameters

identityToBeMapped  IIdentity
The identity (either a user, IApplicationIdentity or IDeviceIdentity to be mapped)
authenticationCertificate  X509Certificate2
The authentication certificate to associated with identityToBeMapped
authenticatedPrincipal  IPrincipal
The prinicpal which is assigning this association

Implements

ICertificateIdentityProviderAddIdentityMap(IIdentity, X509Certificate2, IPrincipal)
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen an expected argument is not provided
SecurityExceptionWhen a general security constraint is violated
DataPersistenceExceptionWhen persisting the identity mapping fails
See Also