Example #1
0
 protected AAuthentication(Auth_Token?AuthToken = null,
                           eMAIdWithPIN2 QRCodeIdentification = null,
                           eMobilityAccount_Id?PlugAndChargeIdentification = null,
                           eMobilityAccount_Id?RemoteIdentification        = null,
                           UInt32?PIN             = null,
                           PgpPublicKey PublicKey = null,
                           I18NString Description = null)
 {
     this.AuthToken                   = AuthToken;
     this.QRCodeIdentification        = QRCodeIdentification;
     this.PlugAndChargeIdentification = PlugAndChargeIdentification;
     this.RemoteIdentification        = RemoteIdentification;
     this.PIN         = PIN;
     this.PublicKey   = PublicKey;
     this.Description = Description;
 }
Example #2
0
        protected internal RemoteAuthentication(Auth_Token?AuthToken = null,
                                                eMAIdWithPIN2 QRCodeIdentification = null,
                                                eMobilityAccount_Id?PlugAndChargeIdentification = null,
                                                eMobilityAccount_Id?RemoteIdentification        = null,
                                                UInt32?PIN             = null,
                                                PgpPublicKey PublicKey = null,
                                                I18NString Description = null)

            : base(AuthToken,
                   QRCodeIdentification,
                   PlugAndChargeIdentification,
                   RemoteIdentification,
                   PIN,
                   PublicKey,
                   Description)

        {
        }
Example #3
0
 /// <summary>
 /// Create a new authentication info based on the given
 /// e-mobility account identification and its password.
 /// </summary>
 /// <param name="QRCodeIdentification">A QR code identification.</param>
 public static AuthInfo FromQRCodeIdentification(eMAIdWithPIN2 QRCodeIdentification)
 {
     return(new AuthInfo(QRCodeIdentification));
 }
Example #4
0
 private AuthInfo(eMAIdWithPIN2 QRCodeIdentification)
 {
     this._QRCodeIdentification = QRCodeIdentification;
 }
Example #5
0
        /// <summary>
        /// Create a new authentication info based on the given
        /// e-mobility account identification and its password.
        /// </summary>
        /// <param name="QRCodeIdentification">A QR code identification.</param>
        /// <param name="Description">An optional multilingual description.</param>
        public static RemoteAuthentication FromQRCodeIdentification(eMAIdWithPIN2 QRCodeIdentification,
                                                                    I18NString Description = null)

        => new RemoteAuthentication(QRCodeIdentification: QRCodeIdentification,
                                    Description:          Description);