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 Name | Description | Visability |
CALCULATE_HMAC_FOR_CHAR | Generic HMAC function (char input) | Public |
CALL METHOD cl_abap_hmac=>CALCULATE_HMAC_FOR_CHAR...more details | ||
CALCULATE_HMAC_FOR_RAW | Generic HMAC function (raw input) | Public |
CALL METHOD cl_abap_hmac=>CALCULATE_HMAC_FOR_RAW...more details | ||
CONSTRUCTOR | CONSTRUCTOR | Public |
CALL METHOD cl_abap_hmac=>CONSTRUCTOR...more details | ||
DESTRUCTOR | C Destructor | Public |
CALL METHOD cl_abap_hmac=>DESTRUCTOR...more details | ||
EVAL_SYSRC | Evaluation of sy-subrc | Private |
CALL METHOD cl_abap_hmac=>EVAL_SYSRC...more details | ||
FINAL | Ends the HMAC; last function for streams | Public |
CALL METHOD cl_abap_hmac=>FINAL...more details | ||
| ||
GET_ALGORITHM | Returns the name of the hash algorithm | Public |
CALL METHOD cl_abap_hmac=>GET_ALGORITHM...more details | ||
GET_HMAC | Returns the HMAC as an XString | Public |
CALL METHOD cl_abap_hmac=>GET_HMAC...more details | ||
GET_HMAC_LENGTH | Returns the length of the HMAC in bytes | Public |
CALL METHOD cl_abap_hmac=>GET_HMAC_LENGTH...more details | ||
GET_INSTANCE | Generates an instance of the object | Public |
CALL METHOD cl_abap_hmac=>GET_INSTANCE...more details | ||
INIT | Initializes the MAC with a key element | Public |
CALL METHOD cl_abap_hmac=>INIT...more details | ||
IS_EQUAL | Compares two HMACs for equality | Public |
CALL METHOD cl_abap_hmac=>IS_EQUAL...more details | ||
RESET | Resets the HMAC to initial status for new calculation | Public |
CALL METHOD cl_abap_hmac=>RESET...more details | ||
STRING_TO_XSTRING | Addnl function: convert string to XString for calculation | Public |
CALL METHOD cl_abap_hmac=>STRING_TO_XSTRING...more details | ||
TO_BASE64 | Returns the HMAC in base64 format | Public |
CALL METHOD cl_abap_hmac=>TO_BASE64...more details | ||
TO_STRING | Returns the HMAC in string format | Public |
CALL METHOD cl_abap_hmac=>TO_STRING...more details | ||
UPDATE | Updates the HMAC based on the input data | Public |
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.
Name | Level | Description | Initial Value | Type | Visability |
CO_AB_IS_REQUESTED_C | Constant | IsRequested | 'X' | LIKE C | Private |
CO_AB_IS_REQUESTED_X | Constant | IsRequested | 88 | LIKE X | Private |
CO_AB_OPCODE_HMACBLOB | Constant | Calculate hash | 16 | LIKE X | Private |
CO_AB_OPCODE_MESSAGEDIGEST | Constant | Operation Code | 15 | LIKE X | Private |
CO_AB_STATE_DELETE | Constant | Delete | 05 | LIKE X | Private |
CO_AB_STATE_FINAL | Constant | Final status | 03 | LIKE X | Private |
CO_AB_STATE_INFO | Constant | Information | 04 | LIKE X | Private |
CO_AB_STATE_INIT | Constant | Initial status | 01 | LIKE X | Private |
CO_AB_STATE_UPDATE | Constant | Update Status | 02 | LIKE X | Private |
CO_USE_CDESTRUCTOR | Constant | C Destructor | ' ' | LIKE C | Private |
M_ALGORITHM | Instance Attribute | Name of the algorithm | LIKE STRING | Private | |
M_DIGEST_LENGTH | Instance Attribute | Length of the digest in bytes | LIKE I | Private | |
M_KEY | Instance Attribute | HMAC Key | LIKE XSTRING | Private | |
M_POINTER | Instance Attribute | Internal Information | LIKE %_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