Retrieve JWK
Retrieve a public key in JWK format.
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
The JWE value should be a JSON string with the following structure:
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Response
Algorithm intended for use with the key.
"RSA-OAEP-256"
Exponent value for the RSA public key in Base64 URL format.
"..."
Operation permitted for the key.
["encrypt"]
Unique identifier for the kid.
"..."
Type of key.
"RSA"
Modulus value for the RSA public key in Base64 URL format.
"..."
Intended use of the key.
"enc"
Was this page helpful?