コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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();
 }
コード例 #4
0
ファイル: AuthDomain.cs プロジェクト: carlostoalz/DotNet
        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);
            }
        }
コード例 #5
0
 public Capture(string transactionId, string lockerId, bool jwtEnabled, string jwtSecret, string jwtToken)
 {
     TransactionId  = transactionId;
     LockerId       = lockerId;
     JwtCredentials = new JsonWebTokens(jwtEnabled, jwtSecret, jwtToken);;
 }
コード例 #6
0
 public Capture(string transactionId, string lockerId, JsonWebTokens jwtCredentials)
 {
     TransactionId  = transactionId;
     LockerId       = lockerId;
     JwtCredentials = jwtCredentials;
 }