public string GetDataToSign()
 {
     return(Occ.Length + Occ
            + ExternalUniqueNumber.Length + ExternalUniqueNumber
            + ReverseCode.Length + ReverseCode
            + IssuedAt.ToString().Length + IssuedAt.ToString());
 }
Beispiel #2
0
 public string GetDataToSign()
 {
     return(ExternalUniqueNumber.Length + ExternalUniqueNumber
            + Total.ToString().Length + Total.ToString()
            + ItemsQuantity.ToString().Length + ItemsQuantity.ToString()
            + IssuedAt.ToString().Length + IssuedAt.ToString()
            + CallbackUrl.Length + CallbackUrl);
 }
        public string GetDataToSign()
        {
            string ret = Occ.Length + Occ
                         + AuthorizationCode.Length + AuthorizationCode
                         + IssuedAt.ToString().Length + IssuedAt.ToString()
                         + Amount.ToString().Length + Amount.ToString()
                         + InstallmentsAmount.ToString().Length + InstallmentsAmount.ToString()
                         + InstallmentsNumber.ToString().Length + InstallmentsNumber.ToString()
                         + BuyOrder.Length + BuyOrder;

            return(ret);
        }
 public IDictionary <string, object> ToDictionary()
 {
     return((AdditionalClaims ?? new Dictionary <string, object>()).Concat(
                new Dictionary <string, object>
     {
         ["iss"] = Issuer,
         ["sub"] = Subject,
         ["aud"] = Audience,
         ["exp"] = Expiration?.ToString(_iso8601Format, CultureInfo.InvariantCulture),
         ["nbf"] = NotBefore?.ToString(_iso8601Format, CultureInfo.InvariantCulture),
         ["iat"] = IssuedAt?.ToString(_iso8601Format, CultureInfo.InvariantCulture),
         ["jti"] = TokenIdentifier,
     }
                ).Where(x => x.Value != null).ToDictionary(x => x.Key, x => x.Value));
 }