SAP ABAP Class CL_ABAP_MESSAGE_DIGEST (Cryptographic Hash Value of a Message)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SEC (Application Component) Security
     SECH (Package) Security: MD5-Hash (Copyright by RSA Data Security, Inc)
Properties
Class CL_ABAP_MESSAGE_DIGEST  
Short Description Cryptographic Hash Value of a Message    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class MD5    
Program status S  System Program 
Category 0   
Package SECH   Security: MD5-Hash (Copyright by RSA Data Security, Inc) 
Created 20100122   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_ABAP_MESSAGE_DIGEST has no interface implemented.
Friends
Class CL_ABAP_MESSAGE_DIGEST has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CO_AB_IS_REQUESTED_C Constant Private Type reference (TYPE) C 'X' IsRequested 20100329
2 CO_AB_IS_REQUESTED_X Constant Private Type reference (TYPE) X 88 IsRequested 20100329
3 CO_AB_OPCODE_HASHBLOBEXT Constant Private Type reference (TYPE) X 14 Calculate hash 20100329
4 CO_AB_OPCODE_MESSAGEDIGEST Constant Private Type reference (TYPE) X 15 Operation Code 20100329
5 CO_AB_STATE_DELETE Constant Private Type reference (TYPE) X 05 Delete 20100329
6 CO_AB_STATE_FINAL Constant Private Type reference (TYPE) X 03 Final status 20100329
7 CO_AB_STATE_INFO Constant Private Type reference (TYPE) X 04 Information 20100329
8 CO_AB_STATE_INIT Constant Private Type reference (TYPE) X 01 Initial status 20100329
9 CO_AB_STATE_UPDATE Constant Private Type reference (TYPE) X 02 Update Status 20100329
10 CO_USE_CDESTRUCTOR Constant Private Type reference (TYPE) C ' ' C Destructor 20100329
11 M_ALGORITHM Instance attribute Private Type reference (TYPE) STRING Name of the algorithm 20100329
12 M_DIGEST_LENGTH Instance attribute Private Type reference (TYPE) I Length of the digest in bytes 20100329
13 M_POINTER Instance attribute Private Type reference (TYPE) %_C_POINTER Internal Information 20100329
Methods
# Method Level Visibility Method type Description Created on
1 CALCULATE_HASH_FOR_CHAR Static method Public Method Generic hash function (char input) 20100329
2 CALCULATE_HASH_FOR_RAW Static method Public Method Generic hash function (raw input) 20100329
3 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20100329
4 DESTRUCTOR Instance method Public Destructor C Destructor 20100329
5 DIGEST Instance method Public Method Ends the hash calculation. Last function for streams. 20100329
6 EVAL_SYSRC Instance method Private Method Evaluation of sy-subrc 20100329
7 GET_ALGORITHM Instance method Public Method Returns the name of the hash algorithm 20100329
8 GET_DIGEST Instance method Public Method Returns the digest as an XString 20100329
9 GET_DIGEST_LENGTH Instance method Public Method Returns the length of the hash algorithm in bytes 20100329
10 GET_INSTANCE Static method Public Method Generates an instance of the object 20100329
11 IS_EQUAL Static method Public Method Compares two hashes for equality 20100329
12 RESET Instance method Public Method Sets the hash to initial status for recalculation 20100329
13 STRING_TO_XSTRING Static method Public Method Addnl function: convert string to XString for calculation 20100329
14 TO_BASE64 Instance method Public Method Returns the hash in base64 format 20100329
15 TO_STRING Instance method Public Method Returns the hash in string format 20100329
16 UPDATE Instance method Public Method Updates the hash on the basis of the input data 20100329
Events
Class CL_ABAP_MESSAGE_DIGEST has no event.
Types
Class CL_ABAP_MESSAGE_DIGEST has no local type.
Method Signatures

Method CALCULATE_HASH_FOR_CHAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EF_HASHB64STRING Call by reference Type reference (TYPE) STRING Hash-Wert als Base64-Encoded String 20100329
2 Exporting EF_HASHSTRING Call by reference Type reference (TYPE) STRING Hash-Wert als Hex-Encoded String 20100329
3 Exporting EF_HASHX Call by reference Type reference (TYPE) XSEQUENCE Hash-Wert als XSequence 20100604
4 Exporting EF_HASHXSTRING Call by reference Type reference (TYPE) XSTRING Hash-Wert binär als XString 20100329
5 Importing IF_ALGORITHM Call by reference Type reference (TYPE) STRING 'SHA1' Hash-Algorithmus 20100329
6 Importing IF_DATA Call by reference Type reference (TYPE) STRING Daten 20100329
7 Importing IF_LENGTH Call by reference Type reference (TYPE) I 0 Eingabelänge (0: strlen(data)) 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method CALCULATE_HASH_FOR_RAW Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EF_HASHB64STRING Call by reference Type reference (TYPE) STRING Hash-Wert als Base64-Encoded String 20100329
2 Exporting EF_HASHSTRING Call by reference Type reference (TYPE) STRING Hash-Wert als Hex-Encoded String 20100329
3 Exporting EF_HASHX Call by reference Type reference (TYPE) XSEQUENCE Hash-Wert als XSequence 20100604
4 Exporting EF_HASHXSTRING Call by reference Type reference (TYPE) XSTRING Hash-Wert binär als XString 20100329
5 Importing IF_ALGORITHM Call by reference Type reference (TYPE) STRING 'SHA1' Hash-Algorithmus 20100329
6 Importing IF_DATA Call by reference Type reference (TYPE) XSTRING Daten 20100329
7 Importing IF_LENGTH Call by reference Type reference (TYPE) I 0 Eingabelänge (0: strlen(data)) 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IF_ALGORITHM Call by reference Type reference (TYPE) STRING 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method DESTRUCTOR Signature

Method DESTRUCTOR on class CL_ABAP_MESSAGE_DIGEST has no parameter.
Method DESTRUCTOR on class CL_ABAP_MESSAGE_DIGEST has no exception.

Method DIGEST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EF_HASHB64STRING Call by reference Type reference (TYPE) STRING Hash-Wert als Base64-Encoded String 20100329
2 Exporting EF_HASHSTRING Call by reference Type reference (TYPE) STRING Hash-Wert als Hex-Encoded String 20100329
3 Exporting EF_HASHX Call by reference Type reference (TYPE) XSEQUENCE Hash-Wert als XSequence 20100604
4 Exporting EF_HASHXSTRING Call by reference Type reference (TYPE) XSTRING Hash-Wert binär als XString 20100329
5 Importing IF_DATA Call by reference Type reference (TYPE) XSTRING Daten 20100329
6 Importing IF_LENGTH Call by reference Type reference (TYPE) I 0 Eingabelänge (0: strlen(data)) 20100329
7 Importing IF_OFFSET Call by reference Type reference (TYPE) I 0 Offset der Eingabe (0: Beginn) 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method EVAL_SYSRC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IF_RC Call by reference Type reference (TYPE) I 0 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method GET_ALGORITHM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RF_ALGORITHM Value transfer Type reference (TYPE) STRING Algorithmus 20100329

Method GET_ALGORITHM on class CL_ABAP_MESSAGE_DIGEST has no exception.

Method GET_DIGEST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ER_HASH Value transfer Type reference (TYPE) XSTRING Hashwert 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method GET_DIGEST_LENGTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RI_LENGTH Value transfer Type reference (TYPE) I Länge 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IF_ALGORITHM Call by reference Type reference (TYPE) STRING 'SHA1' 20100329
2 Returning RO_OBJECT Value transfer Object reference (TYPE REF TO) CL_ABAP_MESSAGE_DIGEST Kryptografischer Hash-Wert einer Nachricht 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method IS_EQUAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ER_EQUAL Value transfer Type reference (TYPE) ABAP_BOOL True if Equal 20100329
2 Importing IF_DIGESTA Call by reference Type reference (TYPE) XSTRING First Digest 20100329
3 Importing IF_DIGESTB Call by reference Type reference (TYPE) XSTRING Second Digest 20100329

Method IS_EQUAL on class CL_ABAP_MESSAGE_DIGEST has no exception.

Method RESET Signature

Method RESET on class CL_ABAP_MESSAGE_DIGEST has no parameter.
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method STRING_TO_XSTRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ER_OUTPUT Value transfer Type reference (TYPE) XSTRING Ausgabewert 20100329
2 Importing IF_INPUT Call by reference Type reference (TYPE) STRING Eingabewert 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method TO_BASE64 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ER_HASHB64STRING Value transfer Type reference (TYPE) STRING Hash-Wert als Base64-Encoded String 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method TO_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ER_HASHSTRING Value transfer Type reference (TYPE) STRING Hash-Wert als Hex-Encoded String 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329

Method UPDATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IF_DATA Call by reference Type reference (TYPE) XSTRING Daten 20100329
2 Importing IF_LENGTH Call by reference Type reference (TYPE) I 0 Eingabelänge (0: strlen(data)) 20100329
3 Importing IF_OFFSET Call by reference Type reference (TYPE) I 0 Offset der Eingabe (0: Beginn) 20100329
# Exception Resumable Description Created on
1 CX_ABAP_MESSAGE_DIGEST Ausnahmeklasse für Message Digest 20100329
History
Last changed by/on SAP  20110908 
SAP Release Created in