JWT Builder (jwtBuilder)
Information about configuring the builder. The elements and attributes that you specify are used to build the token.
Name | Type | Default | Description |
---|---|---|---|
audiences | string | The trusted audience list to be included in the aud claim in the JSON web token. | |
claims | string | Specify a comma separated list of claims to include in the token. These claims must be existing user attributes that are defined for the subject of the JWT in the user registry. | |
contentEncryptionAlgorithm |
| Specifies the encryption algorithm that is used to encrypt the JWT plaintext to produce the JWE ciphertext. | |
expiresInSeconds | A period of time with second precision | -1 | Indicates the token expiration time in seconds. Takes precedence over expiry. Specify a positive integer followed by a unit of time, which can be hours (h), minutes (m), or seconds (s). For example, specify 30 seconds as 30s. You can include multiple values in a single entry. For example, 1m30s is equivalent to 90 seconds. |
expiry | A period of time with hour precision | 2h | Indicates the token expiration time in hours. ExpiresInSeconds takes precedence if present. Specify a positive integer followed by the unit of time, which can be hours (h). For example, specify 12 hours as 12h. |
id | string | defaultJWT | This ID is used to identify the JWT builder. If an ID value is not specified, the builder is not processed. The ID must be a URL-safe string. The ID is used as part of the issuer value if the issuer configuration attribute is not specified. The JwtBuilder API uses this ID to determine which builder configuration to use to construct JWTs. |
issuer | string | An Issuer is a case-sensitive URL using the HTTP or HTTPS scheme that contains scheme, host, and optionally port number and path components. | |
jti | boolean | false | Indicates whether to generate a unique id for the token. |
jwkEnabled | boolean | false | Indicates whether to use JWK to sign the token. When JWK is enabled, the JWT builder dynamically generates key pairs and signs the JWT token with the private key. To validate the signature, the JWT consumer can retrieve the key from the JWK API, which has the format https://<host_name>:<ssl_port>/jwt/ibm/api/<jwtBuilder_configuration_id>/jwk. |
keyAlias | string | A key alias name that is used to locate the private key for signing the token with an asymmetric algorithm. | |
keyManagementKeyAlgorithm |
| Specifies the encryption algorithm that is used to encrypt the Content Encryption Key of a JWE. | |
keyManagementKeyAlias | string | Public key alias of the key management key that is used to encrypt the Content Encryption Key of a JWE. | |
keyStoreRef | A reference to top level keyStore element (string). | A keystore containing the private key necessary for signing the token with an asymmetric algorithm. | |
nbfOffset | A period of time with second precision | -1 | Identifies the time when JWT is accepted for processing. The value must be a NumericDate object. Specify a positive integer followed by a unit of time, which can be hours (h), minutes (m), or seconds (s). For example, specify 30 seconds as 30s. You can include multiple values in a single entry. For example, 1m30s is equivalent to 90 seconds. |
scope | string | Specify a white space separated list of OAuth scopes. | |
sharedKey | Reversably encoded password (string) | Specifies the string that will be used to generate the shared keys. The value can be stored in clear text or in the more secure encoded form. Use the securityUtility tool with the encode option to encode the shared key. | |
signatureAlgorithm |
| RS256 | Specifies the signature algorithm that will be used to sign the JWT token. |
trustStoreRef | A reference to top level keyStore element (string). | A keystore that contains the key management key that is used to encrypt the Content Encryption Key of a JWE. |