HMAC-SHA256

HMAC-SHA256

[1] OAuth 1.0 Server · OpenBankProject/OBP-API Wiki ( 版) <https://github.com/OpenBankProject/OBP-API/wiki/OAuth-1.0-Server>

The Open Bank Project OAuth server support "SHA1" and "SHA256" so the parameter MUST be set to “HMAC-SHA1" or “HMAC-SHA256”

[2] OAuth 1.0 Server · OpenBankProject/OBP-API Wiki ( 版) <https://github.com/OpenBankProject/OBP-API/wiki/OAuth-1.0-Server>

The Open Bank Project OAuth 1.0 implementation uses the “HMAC-SHA1” and “HMAC-SHA256” as signing methods. The key to sign the base string is the concatenation of the consumer secret and the token secret with the “&” character in the middle like this: oauth_consumer_secret&oauth_token_secret, in the first step the application does not have yet a token so it will be an empty string.

The signature that results from the signature process MUST be encoded in base 64 also since the protocol requires encoding all the OAuth parameters.

[3] PHP: 定義済み定数 - Manual ( 版) <http://php.net/manual/ja/oauth.constants.php>

OAUTH_SIG_METHOD_HMACSHA256 (string)

OAuth HMAC-SHA256 署名方式。