Skip to content

/AWS1/IF_SGN=>GETSIGNINGPLATFORM()

About GetSigningPlatform

Returns information on a specific signing platform.

Method Signature

METHODS /AWS1/IF_SGN~GETSIGNINGPLATFORM
  IMPORTING
    !IV_PLATFORMID TYPE /AWS1/SGNPLATFORMID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgngetsigningplatfo01
  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_platformid TYPE /AWS1/SGNPLATFORMID /AWS1/SGNPLATFORMID

The ID of the target signing platform.

RETURNING

oo_output TYPE REF TO /aws1/cl_sgngetsigningplatfo01 /AWS1/CL_SGNGETSIGNINGPLATFO01

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

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_platformid = lo_result->get_platformid( ).
  lv_displayname = lo_result->get_displayname( ).
  lv_string = lo_result->get_partner( ).
  lv_string = lo_result->get_target( ).
  lv_category = lo_result->get_category( ).
  lo_signingconfiguration = lo_result->get_signingconfiguration( ).
  IF lo_signingconfiguration IS NOT INITIAL.
    lo_encryptionalgorithmopti = lo_signingconfiguration->get_encalgorithmoptions( ).
    IF lo_encryptionalgorithmopti IS NOT INITIAL.
      LOOP AT lo_encryptionalgorithmopti->get_allowedvalues( ) into lo_row.
        lo_row_1 = lo_row.
        IF lo_row_1 IS NOT INITIAL.
          lv_encryptionalgorithm = lo_row_1->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_encryptionalgorithm = lo_encryptionalgorithmopti->get_defaultvalue( ).
    ENDIF.
    lo_hashalgorithmoptions = lo_signingconfiguration->get_hashalgorithmoptions( ).
    IF lo_hashalgorithmoptions IS NOT INITIAL.
      LOOP AT lo_hashalgorithmoptions->get_allowedvalues( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_hashalgorithm = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_hashalgorithm = lo_hashalgorithmoptions->get_defaultvalue( ).
    ENDIF.
  ENDIF.
  lo_signingimageformat = lo_result->get_signingimageformat( ).
  IF lo_signingimageformat IS NOT INITIAL.
    LOOP AT lo_signingimageformat->get_supportedformats( ) into lo_row_4.
      lo_row_5 = lo_row_4.
      IF lo_row_5 IS NOT INITIAL.
        lv_imageformat = lo_row_5->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_imageformat = lo_signingimageformat->get_defaultformat( ).
  ENDIF.
  lv_maxsizeinmb = lo_result->get_maxsizeinmb( ).
  lv_bool = lo_result->get_revocationsupported( ).
ENDIF.