MobileAuthorizeStart(this IMobileClient IMobileClient,
                             EVSE_Id EVSEId,
                             EVCO_Id EVCOId,
                             String HashedPIN,
                             PINCrypto Function,
                             String Salt,
                             PartnerProduct_Id?PartnerProductId = null,
                             Boolean?GetNewSession = null,

                             DateTime?Timestamp = null,
                             CancellationToken?CancellationToken = null,
                             EventTracking_Id EventTrackingId    = null,
                             TimeSpan?RequestTimeout             = null)


        => IMobileClient.MobileAuthorizeStart(new MobileAuthorizeStartRequest(EVSEId,
                                                                              new QRCodeIdentification(EVCOId,
                                                                                                       HashedPIN,
                                                                                                       Function,
                                                                                                       Salt),
                                                                              PartnerProductId,
                                                                              GetNewSession,

                                                                              Timestamp,
                                                                              CancellationToken,
                                                                              EventTrackingId,
                                                                              RequestTimeout ?? IMobileClient.RequestTimeout));
Exemple #2
0
 public eMAIdWithPIN2(eMA_Id eMAId,
                      String PIN)
 {
     this._eMAId    = eMAId;
     this._PIN      = PIN;
     this._Function = PINCrypto.none;
 }
Exemple #3
0
 public eMAIdWithPIN2(eMA_Id eMAId,
                      String PIN,
                      PINCrypto Function,
                      String Salt = "")
 {
     this._eMAId    = eMAId;
     this._PIN      = PIN;
     this._Function = Function;
     this._Salt     = Salt;
 }
 /// <summary>
 /// Create a new QR code identification with a hashed pin.
 /// </summary>
 /// <param name="EVCOId">An QR code identification.</param>
 /// <param name="HashedPIN">A hashed pin.</param>
 /// <param name="Function">A crypto function.</param>
 /// <param name="Salt">A salt of the crypto function.</param>
 public QRCodeIdentification(EVCO_Id EVCOId,
                             String HashedPIN,
                             PINCrypto Function,
                             String Salt = "")
 {
     this.EVCOId   = EVCOId;
     this.PIN      = HashedPIN?.Trim() ?? "";
     this.Function = Function;
     this.Salt     = Salt ?? "";
 }
Exemple #5
0
        /// <summary>
        /// Create a new identification.
        /// </summary>
        /// <param name="EVCOId">An QR code identification.</param>
        /// <param name="HashedPIN">A hashed pin.</param>
        /// <param name="Function">A crypto function.</param>
        /// <param name="Salt">A salt of the crypto function.</param>
        /// <param name="CustomData">Optional custom data.</param>
        public static Identification FromQRCodeIdentification(EVCO_Id EVCOId,
                                                              String HashedPIN,
                                                              PINCrypto Function,
                                                              String Salt = "",
                                                              IReadOnlyDictionary <String, Object> CustomData = null)

        => new Identification(QRCodeIdentification:  new QRCodeIdentification(EVCOId,
                                                                              HashedPIN,
                                                                              Function,
                                                                              Salt),
                              CustomData:            CustomData);