Developer Guide Menu

Examples

Example: Generate Key Headers

           
POST https://apitest.cybersource.com/flex/v1/keys v-c-merchant-id: [mid_123] digest: [SHA-256=bena9bhB3Jy4uPvfu1tAC0uN8AuzzM+xjqmDwR5//EA=]  date: [Tue, 04 Jul 2017 14:41:08 GMT] Content-Type: [application/json] signature: [keyid="dd19f90b-2cdd-4f66-a03c-172e7d73e78b", algorithm="HmacSHA256",headers="v-c-merchant-id host digest (request-target) date content-type", signature="GZmvknvih/NR5hJNbXZJK2V7WCy1OL/1hI0Qsqpw2Kw="]

Example: Generate Key Payload

             
{     "encryptionType": "RsaOaep256" }

Example: Generate Key Response

             
{       "keyId": "05BgbFie7vX5vzSMKOoqEAAdfpdR4kas",       "der": {           "format": "X.509",           "algorithm": "RSA",           "publicKey":           "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgC1G6rVue4w/jjJrKPZ           usGN9G+Y7mWuLJ0O2/GHd94LvR51+ok7ahuQUVMZLdigixnspaGo/WVLvTTZ5J2           8Cc1uSx0o/BsxpNaAQD8aBZL3nnAiBLACxI1JHAVo7SXbJQmz+mqVFYTppg9Qmp           B2ATTmXjUOQy+Fqkw3EByfCANHhHSNs4+HASovsfcRMUmmvDfTd5qBb23KzDJe           DVqTYWa3XjUorlZOCJuLyPgeDEK8oOC9C4W9dn32z8FJ4E6Dz28M/2O3g8FLQD           2F+NezkQJsl8MEYo4rl1nr7oIkMsYLCCoG8jwmryErb7km9JWWgqZ80trkjijF           qDAbHfUEwIDAQAB"       }       "jwk": {           "kty": "RSA",           "use": "enc",           "kid": "05BgbFie7vX5vzSMKOoqEAAdfpdR4kas",           "n": "fC1G6rVue4w_jjJrKPZusGN9G-Y7mWuLJ0O2_GHd94LvR51-ok7ahu           QUVMZLdigixnspaGo_WVLvTTZ5J28Cc1uSx0o_BsxpNaAQD8_aBZL3nnAi           BLACxI1JHAVo7SXAJQmz-mqVFYTppg9QmpB2ATTmXjUOQy-Fqkw3EByfCA           NHhHSNs4-HASovsfcRMUmmvDfTd5qBb23KzDJeDVqTYWa3XjUorlZOCJuLy           PgeDEK8oOC9C4W9dn32z8FJ4E6Dz28M_2O3g8FLQD2F-NezkQJsl8MEYo4r           l1nr7_oIkMsYLCCoG8jwmryErb7km9JWWgqZ80trkjijFqDAbHfUEw",           "e": "AQAB"       } }
Top