/AWS1/IF_ACS=>CREATECHALLENGE()¶
About CreateChallenge¶
For general-purpose connectors. Creates a challenge password for the specified connector. The SCEP protocol uses a challenge password to authenticate a request before issuing a certificate from a certificate authority (CA). Your SCEP clients include the challenge password as part of their certificate request to Connector for SCEP. To retrieve the connector Amazon Resource Names (ARNs) for the connectors in your account, call ListConnectors.
To create additional challenge passwords for the connector, call CreateChallenge again. We recommend frequently rotating your challenge passwords.
Method Signature¶
METHODS /AWS1/IF_ACS~CREATECHALLENGE
IMPORTING
!IV_CONNECTORARN TYPE /AWS1/ACSCONNECTORARN OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/ACSCLIENTTOKEN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_ACSTAGS_W=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_acscreatechallengersp
RAISING
/AWS1/CX_ACSACCESSDENIEDEX
/AWS1/CX_ACSBADREQUESTEX
/AWS1/CX_ACSCONFLICTEXCEPTION
/AWS1/CX_ACSINTERNALSERVEREX
/AWS1/CX_ACSRESOURCENOTFOUNDEX
/AWS1/CX_ACSSERVICEQUOTAEXCDEX
/AWS1/CX_ACSTHROTTLINGEX
/AWS1/CX_ACSVALIDATIONEX
/AWS1/CX_ACSCLIENTEXC
/AWS1/CX_ACSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_connectorarn TYPE /AWS1/ACSCONNECTORARN /AWS1/ACSCONNECTORARN¶
The Amazon Resource Name (ARN) of the connector that you want to create a challenge for.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/ACSCLIENTTOKEN /AWS1/ACSCLIENTTOKEN¶
Custom string that can be used to distinguish between calls to the CreateChallenge action. Client tokens for
CreateChallengetime out after five minutes. Therefore, if you callCreateChallengemultiple times with the same client token within five minutes, Connector for SCEP recognizes that you are requesting only one challenge and will only respond with one. If you change the client token for each call, Connector for SCEP recognizes that you are requesting multiple challenge passwords.
it_tags TYPE /AWS1/CL_ACSTAGS_W=>TT_TAGS TT_TAGS¶
The key-value pairs to associate with the resource.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_acscreatechallengersp /AWS1/CL_ACSCREATECHALLENGERSP¶
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->createchallenge(
it_tags = VALUE /aws1/cl_acstags_w=>tt_tags(
(
VALUE /aws1/cl_acstags_w=>ts_tags_maprow(
value = new /aws1/cl_acstags_w( |string| )
key = |string|
)
)
)
iv_clienttoken = |string|
iv_connectorarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_challenge = lo_result->get_challenge( ).
IF lo_challenge IS NOT INITIAL.
lv_challengearn = lo_challenge->get_arn( ).
lv_connectorarn = lo_challenge->get_connectorarn( ).
lv_timestamp = lo_challenge->get_createdat( ).
lv_timestamp = lo_challenge->get_updatedat( ).
lv_sensitivestring = lo_challenge->get_password( ).
ENDIF.
ENDIF.