SAP CL_ABAP_HMAC OO Class - Message Authentication Code (MAC) of a message









CL_ABAP_HMAC is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_HMAC including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events



Method list of CL_ABAP_HMAC SAP class


A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD. Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...


Method NameDescriptionVisability
CALCULATE_HMAC_FOR_CHARGeneric HMAC function (char input)Public
CALL METHOD cl_abap_hmac=>CALCULATE_HMAC_FOR_CHAR...more details

CALCULATE_HMAC_FOR_RAWGeneric HMAC function (raw input)Public
CALL METHOD cl_abap_hmac=>CALCULATE_HMAC_FOR_RAW...more details

CONSTRUCTORCONSTRUCTORPublic
CALL METHOD cl_abap_hmac=>CONSTRUCTOR...more details

DESTRUCTORC DestructorPublic
CALL METHOD cl_abap_hmac=>DESTRUCTOR...more details

EVAL_SYSRCEvaluation of sy-subrcPrivate
CALL METHOD cl_abap_hmac=>EVAL_SYSRC...more details

FINALEnds the HMAC; last function for streamsPublic
CALL METHOD cl_abap_hmac=>FINAL...more details

GET_ALGORITHMReturns the name of the hash algorithmPublic
CALL METHOD cl_abap_hmac=>GET_ALGORITHM...more details

GET_HMACReturns the HMAC as an XStringPublic
CALL METHOD cl_abap_hmac=>GET_HMAC...more details

GET_HMAC_LENGTHReturns the length of the HMAC in bytesPublic
CALL METHOD cl_abap_hmac=>GET_HMAC_LENGTH...more details

GET_INSTANCEGenerates an instance of the objectPublic
CALL METHOD cl_abap_hmac=>GET_INSTANCE...more details

INITInitializes the MAC with a key elementPublic
CALL METHOD cl_abap_hmac=>INIT...more details

IS_EQUALCompares two HMACs for equalityPublic
CALL METHOD cl_abap_hmac=>IS_EQUAL...more details

RESETResets the HMAC to initial status for new calculationPublic
CALL METHOD cl_abap_hmac=>RESET...more details

STRING_TO_XSTRINGAddnl function: convert string to XString for calculationPublic
CALL METHOD cl_abap_hmac=>STRING_TO_XSTRING...more details

TO_BASE64Returns the HMAC in base64 formatPublic
CALL METHOD cl_abap_hmac=>TO_BASE64...more details

TO_STRINGReturns the HMAC in string formatPublic
CALL METHOD cl_abap_hmac=>TO_STRING...more details

UPDATEUpdates the HMAC based on the input dataPublic
CALL METHOD cl_abap_hmac=>UPDATE...more details



CL_ABAP_HMAC attributes

List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

NameLevelDescriptionInitial ValueTypeVisability
CO_AB_IS_REQUESTED_CConstantIsRequested'X'LIKE
C
Private
CO_AB_IS_REQUESTED_XConstantIsRequested88LIKE
X
Private
CO_AB_OPCODE_HMACBLOBConstantCalculate hash16LIKE
X
Private
CO_AB_OPCODE_MESSAGEDIGESTConstantOperation Code15LIKE
X
Private
CO_AB_STATE_DELETEConstantDelete05LIKE
X
Private
CO_AB_STATE_FINALConstantFinal status03LIKE
X
Private
CO_AB_STATE_INFOConstantInformation04LIKE
X
Private
CO_AB_STATE_INITConstantInitial status01LIKE
X
Private
CO_AB_STATE_UPDATEConstantUpdate Status02LIKE
X
Private
CO_USE_CDESTRUCTORConstantC Destructor' 'LIKE
C
Private
M_ALGORITHMInstance AttributeName of the algorithmLIKE
STRING
Private
M_DIGEST_LENGTHInstance AttributeLength of the digest in bytesLIKE
I
Private
M_KEYInstance AttributeHMAC KeyLIKE
XSTRING
Private
M_POINTERInstance AttributeInternal InformationLIKE
%_C_POINTER
Private


Links to Related Class(s)

CL_ABAP_...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!