Building the JWE
You can encrypt the payload you’ll provide to the Switch Card (JWE) endpoint using your JWE public key. The JWE specifications are the following:- RSA 2048 certificate in JWK format
- RSA-OAEP-256 as key encryption algorithm
- A256GCM as content encryption algorithm
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
. Use your client_id
as the username
and your secret
as the password
value.
Response
Successful request.
Algorithm intended for use with the key.
Example:
"RSA-OAEP-256"
Exponent value for the RSA public key in Base64 URL format.
Example:
"..."
Operation permitted for the key.
Example:
["encrypt"]
Unique identifier for the kid.
Example:
"..."
Type of key.
Example:
"RSA"
Modulus value for the RSA public key in Base64 URL format.
Example:
"..."
Intended use of the key.
Example:
"enc"