Click or drag to resize

DefaultDataSigningService Class

Default data signing service
Inheritance Hierarchy
SystemObject
  SanteDB.Core.SecurityDefaultDataSigningService

Namespace: SanteDB.Core.Security
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public class DefaultDataSigningService : IDataSigningService, 
	IServiceImplementation

The DefaultDataSigningService type exposes the following members.

Constructors
 NameDescription
Public methodDefaultDataSigningService Default data signing service DI constructor
Top
Properties
 NameDescription
Public propertyServiceName Get the service name
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetNamedSignatureSettings Get siganture settings from the named system key
Public methodGetSignatureSettings Get signature settings from a certificate thumbprint
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSignData(Byte, SignatureSettings) Signs the specified data using the service's configured signing key
Public methodSignData(Byte, String) Sign data with the specified key data
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodVerify(Byte, Byte, SignatureSettings) Verifies the digital signature of the data with a provided configuration
Public methodVerify(Byte, Byte, String) Verifies the digital signature of the data
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodTryGetSignatureSettings Try to get signature settings
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks

This digital signature service uses the keys configured in the SecurityConfigurationSection to sign data based on the type of signature algorithm in the SecurityConfigurationSection. Supported signature algorithms are:

  • HMAC256 (HMAC + SHA256) using shared secrets
  • RS256 (RSA+SHA256) using X.509 certificates (generation of a signature requires private key)
  • RS512 (RSA+SHA512)
See Also