Retrieve Encryption Keys in JWK Format

get

/admin/v1/EncryptionKeys

Request

Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Encryption keys in JWK format.
Body ()
Root Schema : EncryptionKey
Type: object
Retrieve the existing encryption keys used by Cloud Gate to encrypt cookies in JSON Web Key format (JWK).
Show Source
Nested Schema : keys
Type: array
This field contains a list of encryption keys.
Show Source
Nested Schema : encKeys
Type: object
A complex attribute representing keys
Show Source
Back to Top

Examples

The following example shows how to retrieve the existing encryption keys in JSON Web Token format (JWT) by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

cURL Command

Note:

The command in this example uses the URL structure https://tenant-base-url/resource-path, where tenant-base-url represents the Identity Service URL, and the resource path represents the Identity Service API. See Send Requests for the appropriate URL structure to use.
curl
-X GET
-H "Content-Type:application/json"
-H "Authorization: Bearer <Access Token Value>"
https://tenant-base-url/admin/v1/EncryptionKeys

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "dataformat": "1.0",
  "keys": [
    {
      "kty": "oct",
      "kid": "next",
      "k": "AgADUkFXAANBRVMAAAAQHllTkVziRTSoQsYw4d123QA",
      "enc": "AES_128_CBC_HMAC_SHA_256"
    },
    {
      "kty": "oct",
      "kid": "current",
      "k": "AgADUkFXAANBRVMAAAAQQG0eUF0DZ2WlmyYU1wBM5wA",
      "enc": "AES_128_CBC_HMAC_SHA_256",
      "exp": 1447125204
    },
    {
      "kty": "oct",
      "kid": "previous",
      "k": "AgADUkFXAANBRVMAAAAQOhcEUNxrKYCV8L5dYbO0iwA",
      "enc": "AES_128_CBC_HMAC_SHA_256"
    }
  ],
  "id": "[anonymous]"
}
Back to Top