Class AuthHashUtil
パラメータ改竄チェッククラス
Inheritance
object
AuthHashUtil
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: jp.veritrans.tercerog.mdk
Assembly: cg-mdk.dll
Syntax
public class AuthHashUtil
Methods
CheckAuthHash(IEnumerable<KeyValuePair<string, StringValues>>, string, string)
リクエストパラメータ内のパラメータ順序(authParams)に従ってハッシュ値を計算し、
リクエストパラメータ内の改竄チェック用ハッシュ値(vAuthInfo)と比較する。
リクエストパラメータにパラメータ順序と改竄チェック用ハッシュ値が含まれていない場合、
改竄されているとみなす。
Declaration
public static bool CheckAuthHash(IEnumerable<KeyValuePair<string, StringValues>> requestParams, string merchantCcId, string merchantPw)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<string, StringValues>> | requestParams | リクエストパラメータ |
string | merchantCcId | マーチャントCCID |
string | merchantPw | マーチャント認証鍵 |
Returns
Type | Description |
---|---|
bool | true 一致 or false 不一致(改竄されている) |