Referencia de la Clase Sage.ES.BankingCloud.BcEsKeyStorage

Key storage implementation for persistent reading/writing signing key. Más...

Diagrama de herencias de Sage.ES.BankingCloud.BcEsKeyStorage

Métodos públicos

 BcEsKeyStorage ()
 Constructor of BcEsKeyStorage without parameters. Only for test purposes ! Más...
 
 BcEsKeyStorage (dynamic objKeyStorProductApp, ILogger bcEsLogger=null)
 Constructor with key storage product app object and logger object, for test and production purposes, both. Más...
 
string ReadKey ()
 Read the signingkey from the key storage used. Más...
 
void WriteKey (string key)
 Write the signingkey from the key storage used. Más...
 

Descripción detallada

Key storage implementation for persistent reading/writing signing key.

Is responsability of the final product (Sage50/Sage200 Spain) supply a dynamic object with two methods ReadKey() and WriteKey() in which read/write the signing key from/to a unique shared ubication for all users that work with the product application.

This parameters are received in the constructor, if the constructor receive no parameters BcEsKeyStorage uses a no persistent mechanism TestKeyFileStorage which read/write the signing key in a local file which are not shared by all the users. In production mode create BcKeyStorage always with the objKeyStorageProductApp parameter !!

Definición en la línea 18 del archivo BcKeyStorage.cs.

Documentación del constructor y destructor

◆ BcEsKeyStorage() [1/2]

Sage.ES.BankingCloud.BcEsKeyStorage.BcEsKeyStorage ( )
inline

Constructor of BcEsKeyStorage without parameters. Only for test purposes !

In this case the BcEsKeyStorage class behaviour like the TestFileKeyStorage class which work reading/saving the key into a ASCII file in the AppDomain.CurrentDomain.BaseDirectory directory. Only for test purposes. In production mode never would be called this constructor without parameters !! In production mode use always the BcEsKeyStorage(dynamic objKeyStorProductApp, ILogger bcEsLogger) constructor with the objKeyStorProductApp declared.

In this case the logger behaviour is like Sage.BankingCloud.Client.Default.DefaultLogger() which work with console.

Definición en la línea 67 del archivo BcKeyStorage.cs.

◆ BcEsKeyStorage() [2/2]

Sage.ES.BankingCloud.BcEsKeyStorage.BcEsKeyStorage ( dynamic  objKeyStorProductApp,
ILogger  bcEsLogger = null 
)
inline

Constructor with key storage product app object and logger object, for test and production purposes, both.

Parámetros
objKeyStorProductAppKey storage product app object supplied by the product application, must have 2 methods called ReadKey() and WriteKey().
bcEsLoggerLogger produc app for logging. If not received BcEsKeyStorage uses a DefaultLogger mechanism which work with the console.

Definición en la línea 80 del archivo BcKeyStorage.cs.

Documentación de las funciones miembro

◆ ReadKey()

string Sage.ES.BankingCloud.BcEsKeyStorage.ReadKey ( )
inline

Read the signingkey from the key storage used.

If product app storage key object supplied in the constructor, read the signing key from it (valid for TEST and PROD mode) If no product app storage key object supplied, uses a ASCII local file storage mechanism (TestFileKeyStorage, only for TEST mode).

Devuelve
Signing key readed.

In PRODUCTION mode is responsability of the final product (Sage50/Sage200 Spain) supply this object with two methods ReadKey() and WriteKey() which read/write the signing key from/to a unique shared ubication for all users that are working with the product app.

Definición en la línea 110 del archivo BcKeyStorage.cs.

◆ WriteKey()

void Sage.ES.BankingCloud.BcEsKeyStorage.WriteKey ( string  key)
inline

Write the signingkey from the key storage used.

If product app storage key object supplied in the constructor, write the signing key to it (valid for TEST and PROD mode). If no product app storage key object supplied, uses a ASCII local file storage mechanism (TestFileKeyStorage, only for TEST mode).

In PRODUCTION mode is responsability of the final product (Sage50/Sage200 Spain) supply this object with two methods ReadKey() and WriteKey() which read/write the signing key from/to a unique shared ubication for all users that are working with the product app.

Definición en la línea 155 del archivo BcKeyStorage.cs.


La documentación para esta clase fue generada a partir del siguiente fichero: