From 24c9d03edc23b8462eb259b20161d86ad5f950c3 Mon Sep 17 00:00:00 2001
From: Fabian Lupa
-"! LCL_2FA_AUTHENTICATOR_REGISTRY can be used to find a suitable implementation for a given -"! repository. +"! {@link ZCL_ABAPGIT_2FA_AUTH_REGISTRY} can be used to find a suitable implementation for a +"! given repository. "!
"!-"! Using the begin and end methods an internal session can be started and +"! Using the {@link zif_abapgit_2fa_authenticator.METH:begin} and +"! {@link zif_abapgit_2fa_authenticator.METH.end} methods an internal session can be started and "! completed in which internal state necessary for multiple methods will be cached. This can be -"! used to avoid having multiple http sessions between authenticate and -"! delete_access_tokens. +"! used to avoid having multiple http sessions between +"! {@link zif_abapgit_2fa_authenticator.METH:authenticate} and +"! {@link zif_abapgit_2fa_authenticator.METH:delete_access_tokens}. "!
-INTERFACE zif_abapgit_2fa_authenticator - PUBLIC . - - +INTERFACE zif_abapgit_2fa_authenticator PUBLIC. "! Generate an access token "! @parameter iv_url | Repository url "! @parameter iv_username | Username "! @parameter iv_password | Password "! @parameter iv_2fa_token | Two factor token "! @parameter rv_access_token | Generated access token - "! @raising lcx_2fa_auth_failed | Authentication failed - "! @raising lcx_2fa_token_gen_failed | Token generation failed + "! @raising zcx_abapgit_2fa_auth_failed | Authentication failed + "! @raising zcx_abapgit_2fa_gen_failed | Token generation failed METHODS authenticate IMPORTING !iv_url TYPE string @@ -39,7 +38,7 @@ INTERFACE zif_abapgit_2fa_authenticator zcx_abapgit_2fa_auth_failed zcx_abapgit_2fa_gen_failed zcx_abapgit_2fa_comm_error . - "! Check if this authenticator instance supports the give repository url + "! Check if this authenticator instance supports the given repository url "! @parameter iv_url | Repository url "! @parameter rv_supported | Is supported METHODS supports_url @@ -66,8 +65,8 @@ INTERFACE zif_abapgit_2fa_authenticator "! @parameter iv_username | Username "! @parameter iv_password | Password "! @parameter iv_2fa_token | Two factor token - "! @raising lcx_2fa_token_del_failed | Token deletion failed - "! @raising lcx_2fa_auth_failed | Authentication failed + "! @raising zcx_abapgit_2fa_del_failed | Token deletion failed + "! @raising zcx_abapgit_2fa_auth_failed | Authentication failed METHODS delete_access_tokens IMPORTING !iv_url TYPE string @@ -79,12 +78,12 @@ INTERFACE zif_abapgit_2fa_authenticator zcx_abapgit_2fa_comm_error zcx_abapgit_2fa_auth_failed . "! Begin an authenticator session that uses internal caching for authorizations - "! @raising lcx_2fa_illegal_state | Session already started + "! @raising zcx_abapgit_2fa_illegal_state | Session already started METHODS begin RAISING zcx_abapgit_2fa_illegal_state . "! End an authenticator session and clear internal caches - "! @raising lcx_2fa_illegal_state | Session not running + "! @raising zcx_abapgit_2fa_illegal_state | Session not running METHODS end RAISING zcx_abapgit_2fa_illegal_state .