Skip to content

/AWS1/IF_SGN=>DESCRIBESIGNINGJOB()

About DescribeSigningJob

Returns information about a specific code signing job. You specify the job by using the jobId value that is returned by the StartSigningJob operation.

Method Signature

METHODS /AWS1/IF_SGN~DESCRIBESIGNINGJOB
  IMPORTING
    !IV_JOBID TYPE /AWS1/SGNJOBID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgndescrsigningjobrsp
  RAISING
    /AWS1/CX_SGNACCESSDENIEDEX
    /AWS1/CX_SGNINTERNALSVCERROREX
    /AWS1/CX_SGNRESOURCENOTFOUNDEX
    /AWS1/CX_SGNTOOMANYREQUESTSEX
    /AWS1/CX_SGNCLIENTEXC
    /AWS1/CX_SGNSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_jobid TYPE /AWS1/SGNJOBID /AWS1/SGNJOBID

The ID of the signing job on input.

RETURNING

oo_output TYPE REF TO /aws1/cl_sgndescrsigningjobrsp /AWS1/CL_SGNDESCRSIGNINGJOBRSP

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->describesigningjob( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_jobid = lo_result->get_jobid( ).
  lo_source = lo_result->get_source( ).
  IF lo_source IS NOT INITIAL.
    lo_s3source = lo_source->get_s3( ).
    IF lo_s3source IS NOT INITIAL.
      lv_bucketname = lo_s3source->get_bucketname( ).
      lv_key = lo_s3source->get_key( ).
      lv_version = lo_s3source->get_version( ).
    ENDIF.
  ENDIF.
  lo_signingmaterial = lo_result->get_signingmaterial( ).
  IF lo_signingmaterial IS NOT INITIAL.
    lv_certificatearn = lo_signingmaterial->get_certificatearn( ).
  ENDIF.
  lv_platformid = lo_result->get_platformid( ).
  lv_displayname = lo_result->get_platformdisplayname( ).
  lv_profilename = lo_result->get_profilename( ).
  lv_profileversion = lo_result->get_profileversion( ).
  lo_signingplatformoverride = lo_result->get_overrides( ).
  IF lo_signingplatformoverride IS NOT INITIAL.
    lo_signingconfigurationove = lo_signingplatformoverride->get_signingconfiguration( ).
    IF lo_signingconfigurationove IS NOT INITIAL.
      lv_encryptionalgorithm = lo_signingconfigurationove->get_encryptionalgorithm( ).
      lv_hashalgorithm = lo_signingconfigurationove->get_hashalgorithm( ).
    ENDIF.
    lv_imageformat = lo_signingplatformoverride->get_signingimageformat( ).
  ENDIF.
  LOOP AT lo_result->get_signingparameters( ) into ls_row.
    lv_key_1 = ls_row-key.
    lo_value = ls_row-value.
    IF lo_value IS NOT INITIAL.
      lv_signingparametervalue = lo_value->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_timestamp = lo_result->get_createdat( ).
  lv_timestamp = lo_result->get_completedat( ).
  lv_timestamp = lo_result->get_signatureexpiresat( ).
  lv_requestedby = lo_result->get_requestedby( ).
  lv_signingstatus = lo_result->get_status( ).
  lv_statusreason = lo_result->get_statusreason( ).
  lo_signingjobrevocationrec = lo_result->get_revocationrecord( ).
  IF lo_signingjobrevocationrec IS NOT INITIAL.
    lv_string = lo_signingjobrevocationrec->get_reason( ).
    lv_timestamp = lo_signingjobrevocationrec->get_revokedat( ).
    lv_string = lo_signingjobrevocationrec->get_revokedby( ).
  ENDIF.
  lo_signedobject = lo_result->get_signedobject( ).
  IF lo_signedobject IS NOT INITIAL.
    lo_s3signedobject = lo_signedobject->get_s3( ).
    IF lo_s3signedobject IS NOT INITIAL.
      lv_bucketname = lo_s3signedobject->get_bucketname( ).
      lv_key = lo_s3signedobject->get_key( ).
    ENDIF.
  ENDIF.
  lv_accountid = lo_result->get_jobowner( ).
  lv_accountid = lo_result->get_jobinvoker( ).
ENDIF.