/// <summary> /// Initializes a new instance of the Compartment class to the value indicated by all members. /// </summary> /// Parameters. /// <param name="transactionId"> An request Transaction Id.</param> /// <param name="lockerId">An request Locker Id where compartment will be opened.</param> /// <param name="compartmentIds"> List of compartment id's which will be opened.</param> /// <param name="jwtCredentials">Jsone Web Token credentials receive Flag, shared key and Token.</param> /// <param name="dataBaseCredentials">Database credentials receive connection string name, database name and collection name of MongoDB.</param> public Compartment(string transactionId, string lockerId, string[] compartmentIds, JsonWebTokens jwtCredentials) { TransactionId = transactionId; LockerId = lockerId; CompartmentIds = compartmentIds; JwtCredentials = jwtCredentials; }
/// <summary> /// Initializes a new instance of the Compartment class to the value indicated by /// all members. /// </summary> /// Parameters. /// <param name="transactionId"> An request Transaction Id.</param> /// <param name="lockerId">An request Locker Id where compartment will be opened.</param> /// <param name="compartmentIds"> List of compartment id's which will be opened.</param> /// <param name="jwtEnabled">Jsone Web Token Flag.By default will be false, If you want to enable then specify this flag true.</param> /// <param name="jwtSecret">Shared secret between middleware and Hardware Control Module, where HCM will decode JWT using provided secret key.</param> /// <param name="jwtToken">Json web token with specified format which will contains JOSE Header Algoritm(HMAC SHA256 (Base64Url)),JWS Payload (Identity (Must Include Transaction Id))</param> public Compartment(string transactionId, string lockerId, string[] compartmentIds, bool jwtEnabled, string jwtSecret, string jwtToken) { TransactionId = transactionId; LockerId = lockerId; CompartmentIds = compartmentIds; JwtCredentials = new JsonWebTokens(jwtEnabled, jwtSecret, jwtToken); }
/// <summary> /// Initializes a new instance of the Compartment class to the value indicated /// by all members. /// </summary> public Compartment() { TransactionId = string.Empty; LockerId = string.Empty; CompartmentIds = null; JwtCredentials = new JsonWebTokens(); }
public async Task <string> Login(Owner pOwner) { Owner owner = await this._ownerDomain.GetOwner(pOwner.Email); if (EncryptPassword.ValidatePassword(owner.Passord, pOwner.Passord)) { return(JsonWebTokens.Sing(owner.IdOwner, this._configuration["salt"])); } else { return(string.Empty); } }
public Capture(string transactionId, string lockerId, bool jwtEnabled, string jwtSecret, string jwtToken) { TransactionId = transactionId; LockerId = lockerId; JwtCredentials = new JsonWebTokens(jwtEnabled, jwtSecret, jwtToken);; }
public Capture(string transactionId, string lockerId, JsonWebTokens jwtCredentials) { TransactionId = transactionId; LockerId = lockerId; JwtCredentials = jwtCredentials; }