Package com.okta.sdk.resource.model
Class TokenHookResponse
java.lang.Object
com.okta.sdk.resource.model.TokenHookResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class TokenHookResponse
extends Object
implements Serializable
For the token inline hook, the `commands` and `error` objects that you can return in the JSON
payload of your response are defined in the following sections. > **Note:** The size of your response payload must
be less than 256 KB.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddcommandsItem
(TokenHookResponseCommandsInner commandsItem) commands
(List<TokenHookResponseCommandsInner> commands) boolean
error
(TokenHookResponseError error) You can use the `commands` object to provide commands to Okta.getError()
Get errorint
hashCode()
void
setCommands
(List<TokenHookResponseCommandsInner> commands) void
setError
(TokenHookResponseError error) toString()
-
Field Details
-
JSON_PROPERTY_COMMANDS
- See Also:
-
JSON_PROPERTY_ERROR
- See Also:
-
-
Constructor Details
-
TokenHookResponse
public TokenHookResponse()
-
-
Method Details
-
commands
-
addcommandsItem
-
getCommands
You can use the `commands` object to provide commands to Okta. It's where you can tell Okta to add more claims to the token. The `commands` object is an array, allowing you to send multiple commands. In each array element, there needs to be a `type` property and `value` property. The `type` property is where you specify which of the supported commands you want to execute, and `value` is where you supply an operand for that command. In the case of the token hook type, the `value` property is itself a nested object in which you specify a particular operation, a path to act on, and a value.- Returns:
- commands
-
setCommands
-
error
-
getError
Get error- Returns:
- error
-
setError
-
equals
-
hashCode
public int hashCode() -
toString
-