/AWS1/IF_SGN=>PUTSIGNINGPROFILE()¶
About PutSigningProfile¶
Creates a signing profile. A signing profile is a code-signing template that can be used to carry out a pre-defined signing job.
Method Signature¶
METHODS /AWS1/IF_SGN~PUTSIGNINGPROFILE
IMPORTING
!IV_PROFILENAME TYPE /AWS1/SGNPROFILENAME OPTIONAL
!IO_SIGNINGMATERIAL TYPE REF TO /AWS1/CL_SGNSIGNINGMATERIAL OPTIONAL
!IO_SIGNATUREVALIDITYPERIOD TYPE REF TO /AWS1/CL_SGNSIGVALIDITYPERIOD OPTIONAL
!IV_PLATFORMID TYPE /AWS1/SGNPLATFORMID OPTIONAL
!IO_OVERRIDES TYPE REF TO /AWS1/CL_SGNSIGNINGPLATFORMO00 OPTIONAL
!IT_SIGNINGPARAMETERS TYPE /AWS1/CL_SGNSIGNINGPARAMS_W=>TT_SIGNINGPARAMETERS OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SGNTAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgnputsigningpflrsp
RAISING
/AWS1/CX_SGNACCESSDENIEDEX
/AWS1/CX_SGNINTERNALSVCERROREX
/AWS1/CX_SGNRESOURCENOTFOUNDEX
/AWS1/CX_SGNTOOMANYREQUESTSEX
/AWS1/CX_SGNVALIDATIONEX
/AWS1/CX_SGNCLIENTEXC
/AWS1/CX_SGNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_profilename TYPE /AWS1/SGNPROFILENAME /AWS1/SGNPROFILENAME¶
The name of the signing profile to be created.
iv_platformid TYPE /AWS1/SGNPLATFORMID /AWS1/SGNPLATFORMID¶
The ID of the signing platform to be created.
Optional arguments:¶
io_signingmaterial TYPE REF TO /AWS1/CL_SGNSIGNINGMATERIAL /AWS1/CL_SGNSIGNINGMATERIAL¶
The AWS Certificate Manager certificate that will be used to sign code with the new signing profile.
io_signaturevalidityperiod TYPE REF TO /AWS1/CL_SGNSIGVALIDITYPERIOD /AWS1/CL_SGNSIGVALIDITYPERIOD¶
The default validity period override for any signature generated using this signing profile. If unspecified, the default is 135 months.
io_overrides TYPE REF TO /AWS1/CL_SGNSIGNINGPLATFORMO00 /AWS1/CL_SGNSIGNINGPLATFORMO00¶
A subfield of
platform. This specifies any different configuration options that you want to apply to the chosen platform (such as a differenthash-algorithmorsigning-algorithm).
it_signingparameters TYPE /AWS1/CL_SGNSIGNINGPARAMS_W=>TT_SIGNINGPARAMETERS TT_SIGNINGPARAMETERS¶
Map of key-value pairs for signing. These can include any information that you want to use during signing.
it_tags TYPE /AWS1/CL_SGNTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
Tags to be associated with the signing profile that is being created.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgnputsigningpflrsp /AWS1/CL_SGNPUTSIGNINGPFLRSP¶
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->putsigningprofile(
io_overrides = new /aws1/cl_sgnsigningplatformo00(
io_signingconfiguration = new /aws1/cl_sgnsigningconfoverr00(
iv_encryptionalgorithm = |string|
iv_hashalgorithm = |string|
)
iv_signingimageformat = |string|
)
io_signaturevalidityperiod = new /aws1/cl_sgnsigvalidityperiod(
iv_type = |string|
iv_value = 123
)
io_signingmaterial = new /aws1/cl_sgnsigningmaterial( |string| )
it_signingparameters = VALUE /aws1/cl_sgnsigningparams_w=>tt_signingparameters(
(
VALUE /aws1/cl_sgnsigningparams_w=>ts_signingparameters_maprow(
key = |string|
value = new /aws1/cl_sgnsigningparams_w( |string| )
)
)
)
it_tags = VALUE /aws1/cl_sgntagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_sgntagmap_w=>ts_tagmap_maprow(
value = new /aws1/cl_sgntagmap_w( |string| )
key = |string|
)
)
)
iv_platformid = |string|
iv_profilename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_arn( ).
lv_profileversion = lo_result->get_profileversion( ).
lv_arn = lo_result->get_profileversionarn( ).
ENDIF.