/AWS1/CL_IOT=>TESTINVOKEAUTHORIZER()
¶
About TestInvokeAuthorizer¶
Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and debug the custom authorization behavior of devices that connect to the IoT device gateway.
Requires permission to access the TestInvokeAuthorizer action.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_authorizername
TYPE /AWS1/IOTAUTHORIZERNAME
/AWS1/IOTAUTHORIZERNAME
¶
The custom authorizer name.
Optional arguments:¶
iv_token
TYPE /AWS1/IOTTOKEN
/AWS1/IOTTOKEN
¶
The token returned by your custom authentication service.
iv_tokensignature
TYPE /AWS1/IOTTOKENSIGNATURE
/AWS1/IOTTOKENSIGNATURE
¶
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
io_httpcontext
TYPE REF TO /AWS1/CL_IOTHTTPCONTEXT
/AWS1/CL_IOTHTTPCONTEXT
¶
Specifies a test HTTP authorization request.
io_mqttcontext
TYPE REF TO /AWS1/CL_IOTMQTTCONTEXT
/AWS1/CL_IOTMQTTCONTEXT
¶
Specifies a test MQTT authorization request.
io_tlscontext
TYPE REF TO /AWS1/CL_IOTTLSCONTEXT
/AWS1/CL_IOTTLSCONTEXT
¶
Specifies a test TLS authorization request.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_iottestinvokeauthrrsp
/AWS1/CL_IOTTESTINVOKEAUTHRRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_iot~testinvokeauthorizer(
io_httpcontext = new /aws1/cl_iothttpcontext(
it_headers = VALUE /aws1/cl_iothttpheaders_w=>tt_httpheaders(
(
VALUE /aws1/cl_iothttpheaders_w=>ts_httpheaders_maprow(
key = |string|
value = new /aws1/cl_iothttpheaders_w( |string| )
)
)
)
iv_querystring = |string|
)
io_mqttcontext = new /aws1/cl_iotmqttcontext(
iv_clientid = |string|
iv_password = '5347567362473873563239796247513D'
iv_username = |string|
)
io_tlscontext = new /aws1/cl_iottlscontext( |string| )
iv_authorizername = |string|
iv_token = |string|
iv_tokensignature = |string|
).
This is an example of reading all possible response values
lv_isauthenticated = lo_result->get_isauthenticated( ).
lv_principalid = lo_result->get_principalid( ).
LOOP AT lo_result->get_policydocuments( ) into lo_row.
lv_policydocument = lo_row_1->get_value( ).
ENDLOOP.
lv_seconds = lo_result->get_refreshafterinseconds( ).
lv_seconds = lo_result->get_disconnectafterinseconds( ).