SAP ABAP Class CL_ST_CRYPTO (WS Security: Abstract Crypto Token)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SEC (Application Component) Security
     SOAP_SECURITY (Package) SOAP Security
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_SECURITY_TOKEN WS Security: Abstract Security Token 20071228
Meta Relationship - Used By
# Relationship type Used by Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO_CERTIFICATE Security Token (wsse:BinarySecurityToken) 20080213
2 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO_DK13 WS Secure Conversation Derived Key 20080118
3 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO_EK_X509 WS Security: X.509 Security Token (Private Key) 20080102
4 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO_SAML WS Security: SAML 1.1 and 2.0 Token 20090723
5 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO_SCT_BASE WS Secure Conversation SCT - Base Class 20080310
6 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO_SYSTEM HMAC Signature with System Key 20080311
7 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO_X509 WS Security: X.509 Security Token (Private Key) 20071228
8 Inheritance (c INHERITING FROM c_ref)  CL_ST_SAML10 WS Security: SAML 1.1 Token 20080117
Properties
Class CL_ST_CRYPTO  
Short Description WS Security: Abstract Crypto Token    
Super Class CL_SECURITY_TOKEN WS Security: Abstract Security Token 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SOAP_SECURITY   SOAP Security 
Created 20071228   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 WSSEC Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_ST_CRYPTO has no interface implemented.
Friends
# Friend Modeled only Created on Description
1 CL_WS_SECURITY_PROTOCOL 20101220 Web Services Security Log Implementation
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 M_CHECKED_PARTS Instance attribute Protected Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_SIGNED_PARTS Crypto Security Token Konfiguration 20080228
2 M_CRYPTO_CFG Instance attribute Protected Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_CRYPTO Crypto Security Token Konfiguration 20080213
3 M_DK_ENC Instance attribute Protected Object reference (TYPE REF TO) CL_ST_CRYPTO_DK13 Derived Key 20080424
4 M_DK_SIG Instance attribute Protected Object reference (TYPE REF TO) CL_ST_CRYPTO_DK13 Derived Key 20080424
5 M_DK_TAB Instance attribute Protected Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_TAB Tabelle von WS Security Tokens 20080424
6 M_DK_VERSION Instance attribute Protected Type reference (TYPE) INT4 1 Natürliche Zahl 20080424
7 M_ENCRYPTED_TOKENS Instance attribute Protected Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_TAB Encrypted Tokens 20081030
8 M_HAS_ENCRYPTION Instance attribute Protected Type reference (TYPE) BOOLEAN boolsche Variable (X=true, -=false, space=unknown) 20080117
9 M_KEYINFO_URI Instance attribute Protected Type reference (TYPE) STRING 20080212
10 M_KEYINFO_VALUE_TYPE Instance attribute Protected Type reference (TYPE) STRING 20080212
11 M_KEYTYPE Instance attribute Protected Type reference (TYPE) STRING symmetric or asymmetric 20090115
12 M_KEY_INFO_TOKEN_REFERENCE Instance attribute Protected Type reference (TYPE) XSDANY XML-Fragment 20080114
13 M_RSAKEY Instance attribute Protected Type reference (TYPE) SEC_DSIG_KEYINFO_RSAKEY ds:KeyInfo 20090115
14 M_SIGNATURE Instance attribute Public Type reference (TYPE) SEC_DSIG_SIGNATURE ds:Signature 20071228
15 M_SIGNED_HEADER Instance attribute Protected Type reference (TYPE) IF_WSSE_TYPES=>SEC_HEADER_ID_TAB Signierte Header 20080213
16 M_SIG_CONFIRMATIONS Instance attribute Public Type reference (TYPE) IF_WSSE_TYPES=>SEC_WSSE_SIG_CONFIRMATION_TAB Table of SEC_WSSE_SIG_CONFIRMATION 20081114
17 M_SYMMETRIC_KEY Instance attribute Protected Type reference (TYPE) SEC_XML_XENC_INFO Informationen für XML Ent- und Verschlüsselung 20080114
18 M_XENC_REFERENCES Instance attribute Protected Type reference (TYPE) SEC_XENC_DATAREFERENCE_TAB Tabelle von xenc:DataReference 20080117
Methods
# Method Level Visibility Method type Description Created on
1 APPEND_SECURITY_HEADER_DK Instance method Protected Method Write derived keys 20090223
2 APPLY_SIGNATURE Instance method Protected Method Signatur erzeugen 20080117
3 CANONICALIZE_DATA Static method Protected Method Digest auf einem Object innerhalb des Security Headers ber. 20071228
4 CHECK_ENCRPYTED_PARTS Instance method Protected Method Check Signed Data Fragments 20091130
5 CHECK_ENCRYPTION Instance method Public Method Check Encryption 20091125
6 CHECK_SIGNATURE Instance method Public Method Signatur prüfen 20080211
7 CHECK_SIGNATURE_VALUE Instance method Protected Method Signaturwert prüfen 20080213
8 CHECK_SIGNEDINFO Instance method Public Method Check ds:SignedInfo and Timestamp 20120113
9 CHECK_SIGNED_PARTS Instance method Protected Method Signierte Datenfragmente prüfen 20080229
10 CLEAR Instance method Public Method Zustand löschen 20080602
11 COMPUTE_DIGEST Instance method Protected Method Digest für XML Signatur berechnen 20071228
12 CONSTRUCTOR Instance method Public Constructor 20071228
13 CREATE_ENCRYPTED_KEY Instance method Protected Method xenc:EncryptedKey erzeugen 20080505
14 DOES_REFERENCE Instance method Public Method Wird dieses Security Token referenziert 20080212
15 GET_ENDORSING_REFERENCE Instance method Protected Method Signaturwert für Signatur 20080428
16 GET_SIGNED_PARTS Instance method Public Method Information über Signierte Elemente 20080424
17 HANDLE_ENCRYPTION Instance method Private Method Daten verschlüsseln 20080117
18 IS_MESSAGE_ENCRYPTION_TOKEN Instance method Public Method Wird Token für Nachrichtenverschlüsselung verwendet 20080428
19 IS_MESSAGE_SIGNATURE_TOKEN Instance method Public Method Wird Token für Nachrichtensignatur verwendet 20080428
20 P_SHA1 Static method Protected Method P_SHA1 Algorithmus http://schemas.xmlsoap.org/ws/2005/02/sc/ 20080123
21 REUSE Instance method Public Method Delete Status 20080602
22 SET_DK Instance method Protected Method Derived Key Token setzen 20080424
23 SET_PROTECTED_PARTS Instance method Public Method Signierte/Verschlüsselte Parts setzen 20080131
24 SET_SIGNATURE Instance method Public Method Signaturdaten 20080212
25 SIGN Instance method Protected Method SOAP Parts signieren 20071228
26 TRACE_C14N Instance method Private Method C14N Daten Tracem 20080408
Events
Class CL_ST_CRYPTO has no event.
Types
Class CL_ST_CRYPTO has no local type.
Method Signatures

Method APPEND_SECURITY_HEADER_DK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing SEC_HEADER_TAB Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_WSSE_SECURITY_TAB Table of SEC_WSSE_SECURITY 20090223

Method APPEND_SECURITY_HEADER_DK on class CL_ST_CRYPTO has no exception.

Method APPLY_SIGNATURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BODY_PART Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART 20080117
2 Importing HEADER_PARTS Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART_COLLECTION 20080117
3 Importing SEC_WRITER Call by reference Object reference (TYPE REF TO) CL_SEC_SXML_WRITER Secure SXML Writer 20080117
4 Importing ST_TAB Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_TAB Tabelle von SEC_ST_ENTRY 20080117
5 Importing WSS_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20080117

Method APPLY_SIGNATURE on class CL_ST_CRYPTO has no exception.

Method CANONICALIZE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning CANON_DATA Value transfer Type reference (TYPE) XSTRING 20071228
2 Importing DATA_REF Call by reference Object reference (TYPE REF TO) DATA 20071228
3 Importing NAME Call by reference Type reference (TYPE) CLIKE 20071228
4 Importing TRANSFORMATION Call by reference Type reference (TYPE) CXSLTDESC Allgemeine Schnittstelle für Parts 20071228

Method CANONICALIZE_DATA on class CL_ST_CRYPTO has no exception.

Method CHECK_ENCRPYTED_PARTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20091130
2 Importing IS_CHECKED_PARTS Call by reference Type reference (TYPE) SEC_ST_CFG_ENCRYPTED_PARTS Parts to Be Encrypted 20091130
3 Importing IS_REQUIRED_PARTS Call by reference Type reference (TYPE) SEC_ST_CFG_ENCRYPTED_PARTS Parts to Be Encrypted 20091130

Method CHECK_ENCRPYTED_PARTS on class CL_ST_CRYPTO has no exception.

Method CHECK_ENCRYPTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_BODY_ELEMENT Call by reference Object reference (TYPE REF TO) IF_SXML_OPEN_ELEMENT SXML Element Start 20091125
2 Importing IR_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20091130
3 Importing IS_CRYPTO_CFG Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_CRYPTO Crypto Security Token Configuration 20091125
4 Importing IT_DECRYPT_EL Call by reference Type reference (TYPE) SEC_XML_DECRYPTED_ELEMENT_TAB Table of sec_xml_decrypted_element 20091127
5 Importing IT_XENC_INFO Call by reference Type reference (TYPE) SEC_XML_XENC_INFO_TAB Table of SEC_XML_XENC_INFO 20091127

Method CHECK_ENCRYPTION on class CL_ST_CRYPTO has no exception.

Method CHECK_SIGNATURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ER_ST_ENDORSING Call by reference Object reference (TYPE REF TO) CL_ST_CRYPTO WS Security: Abstract Crypto Token 20090224
2 Importing IR_BODY_ELEMENT Call by reference Object reference (TYPE REF TO) IF_SXML_OPEN_ELEMENT SXML Element-Start 20080212
3 Importing IR_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20080212
4 Importing IS_CRYPTO_CFG Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_CRYPTO Crypto Security Token Konfiguration 20080212
5 Importing IS_DSIG_INFO_TAB Call by reference Type reference (TYPE) SEC_XML_DSIG_INFO_TAB Tabelle von SEC_XML_DSIG_INFO 20080212

Method CHECK_SIGNATURE on class CL_ST_CRYPTO has no exception.

Method CHECK_SIGNATURE_VALUE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IF_ALG Call by reference Type reference (TYPE) INT1 Sha Algorithm 20091125
2 Importing IF_SIGNATURE_VALUE Call by reference Type reference (TYPE) XSTRING ds:Signature/ds:SignatureValue 20080213
3 Importing IF_SIGNED_INFO Call by reference Type reference (TYPE) XSTRING C14N von ds:SignedInfo 20080213

Method CHECK_SIGNATURE_VALUE on class CL_ST_CRYPTO has no exception.

Method CHECK_SIGNEDINFO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_SECURITY_PROTOCOL Call by reference Object reference (TYPE REF TO) CL_WS_SECURITY_PROTOCOL Security Protocol 20120113

Method CHECK_SIGNEDINFO on class CL_ST_CRYPTO has no exception.

Method CHECK_SIGNED_PARTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CHECKED_PARTS Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_SIGNED_PARTS 20080229
2 Importing IS_REQUIRED_PARTS Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_SIGNED_PARTS 20080229

Method CHECK_SIGNED_PARTS on class CL_ST_CRYPTO has no exception.

Method CLEAR Signature

Method CLEAR on class CL_ST_CRYPTO has no parameter.
Method CLEAR on class CL_ST_CRYPTO has no exception.

Method COMPUTE_DIGEST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DIGEST_METHOD Call by reference Type reference (TYPE) STRING Digest uri 20091127
2 Importing PART Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART Allgemeine Schnittstelle für Parts 20071228
3 Returning REFERENCE Value transfer Type reference (TYPE) SEC_DSIG_REFERENCE ds:Reference 20071228
4 Importing WSS_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20090210

Method COMPUTE_DIGEST on class CL_ST_CRYPTO has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing KEY_TYPE Call by reference Type reference (TYPE) I 20080114
2 Importing SYMMETRIC_KEY Call by reference Type reference (TYPE) SEC_XML_XENC_INFO Informationen für XML Ent- und Verschlüsselung 20080114
3 Importing X509_ID Call by reference Type reference (TYPE) SSFID SSF-Name für Unterzeichner/Empfänger 20080114
4 Importing X509_KEY_ALGORITHM Call by reference Type reference (TYPE) STRING 20080114
5 Importing X509_SSF_APPL Call by reference Type reference (TYPE) SSFAPPL SSF-Profilname 20080114

Method CONSTRUCTOR on class CL_ST_CRYPTO has no exception.

Method CREATE_ENCRYPTED_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ALGORITHM Call by reference Type reference (TYPE) STRING 20080505
2 Importing CERTIFICATE Call by reference Type reference (TYPE) XSTRING 20090909
3 Exporting EK Call by reference Type reference (TYPE) SEC_XENC_ENCRYPTEDKEY xenc:EncryptedKey 20080505
4 Importing IF_DS_DIGEST_ALGORITHM Call by reference Type reference (TYPE) STRING 20091201
5 Importing IS_WSS_CFG Call by reference Type reference (TYPE) SEC_ST_CFG_WSS WS Security 1.0 and 1.1 Options 20081107
6 Importing KEY_WRAP_ALGORITHM Call by reference Type reference (TYPE) SSFFORM SSF-Format 20080507
7 Importing SSF_APP Call by reference Type reference (TYPE) SSFAPPL SSF-Anwendung 20080505
8 Importing SSF_RECIPIENT Call by reference Type reference (TYPE) SSFID SSF-Name für Unterzeichner/Empfänger 20080505
9 Exporting XENC_INFO Call by reference Type reference (TYPE) SEC_XML_XENC_INFO Informationen für XML Ent- und Verschlüsselung 20080505

Method CREATE_ENCRYPTED_KEY on class CL_ST_CRYPTO has no exception.

Method DOES_REFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_KEYINFO Call by reference Type reference (TYPE) SEC_DSIG_KEYINFO ds:KeyInfo 20080212
2 Returning RF_DOES_REFERENCE Value transfer Type reference (TYPE) BOOLEAN boolsche Variable (X=true, -=false, space=unknown) 20080212

Method DOES_REFERENCE on class CL_ST_CRYPTO has no exception.

Method GET_ENDORSING_REFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IF_DSIG_DIGEST Call by reference Type reference (TYPE) STRING Digest algorithm 20091222
2 Exporting REFERENCE Call by reference Type reference (TYPE) SEC_DSIG_REFERENCE ds:Reference 20080428

Method GET_ENDORSING_REFERENCE on class CL_ST_CRYPTO has no exception.

Method GET_SIGNED_PARTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_SIGNED_PARTS Value transfer Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_SIGNED_PARTS Zu signierende Parts 20080424

Method GET_SIGNED_PARTS on class CL_ST_CRYPTO has no exception.

Method HANDLE_ENCRYPTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BODY_PART Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART 20080117
2 Exporting EX_MOD_BODY Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART 20100114
3 Importing HEADER_PARTS Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART_COLLECTION 20080212
4 Importing HEADER_PARTS_SIG Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART_COLLECTION 20100114
5 Importing SEC_WRITER Call by reference Object reference (TYPE REF TO) CL_SEC_SXML_WRITER 20080117
6 Importing WSS_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20080320

Method HANDLE_ENCRYPTION on class CL_ST_CRYPTO has no exception.

Method IS_MESSAGE_ENCRYPTION_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RF_MSG_ENC Value transfer Type reference (TYPE) BOOLEAN boolsche Variable (X=true, -=false, space=unknown) 20080428

Method IS_MESSAGE_ENCRYPTION_TOKEN on class CL_ST_CRYPTO has no exception.

Method IS_MESSAGE_SIGNATURE_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RF_MSG_SIG Value transfer Type reference (TYPE) BOOLEAN boolsche Variable (X=true, -=false, space=unknown) 20080428

Method IS_MESSAGE_SIGNATURE_TOKEN on class CL_ST_CRYPTO has no exception.

Method P_SHA1 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning COMPUTED_KEY Value transfer Type reference (TYPE) XSTRING 20080123
2 Importing KEY_LENGTH Call by reference Type reference (TYPE) I 20080123
3 Importing KEY_OFFSET Call by reference Type reference (TYPE) I 20080123
4 Importing KEY_SECRET Call by reference Type reference (TYPE) XSTRING 20080123
5 Importing KEY_SEED Call by reference Type reference (TYPE) XSTRING 20080123

Method P_SHA1 on class CL_ST_CRYPTO has no exception.

Method REUSE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_SEC_READER Call by reference Object reference (TYPE REF TO) CL_SEC_SXML_READER SXML Reader Factory 20080602

Method REUSE on class CL_ST_CRYPTO has no exception.

Method SET_DK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DK Call by reference Object reference (TYPE REF TO) CL_ST_CRYPTO_DK13 WS Secure Conversation Derived Key 20080424

Method SET_DK on class CL_ST_CRYPTO has no exception.

Method SET_PROTECTED_PARTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CRYPTO_CFG Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_CRYPTO Crypto Security Token Konfiguration 20080213
2 Importing ENCRYPTED_PARTS Call by reference Type reference (TYPE) SEC_ST_CFG_ENCRYPTED_PARTS Zu verschlüsselnde Parts 20080131
3 Importing SIGNED_PARTS Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_CFG_SIGNED_PARTS Zu signierende Parts 20080131

Method SET_PROTECTED_PARTS on class CL_ST_CRYPTO has no exception.

Method SET_SIGNATURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SIGNATURE Call by reference Type reference (TYPE) SEC_DSIG_SIGNATURE ds:Signature 20080212

Method SET_SIGNATURE on class CL_ST_CRYPTO has no exception.

Method SIGN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BODY_PART Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART 20071228
2 Importing HEADER_PARTS Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART_COLLECTION 20071228
3 Importing ST_TAB Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_TAB Tabelle von SEC_ST_ENTRY 20080102
4 Importing WSS_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20080428

Method SIGN on class CL_ST_CRYPTO has no exception.

Method TRACE_C14N Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EF_TRACE_INFO Value transfer Type reference (TYPE) STRING 20090219
2 Importing IS_DSIG_INFO Call by reference Type reference (TYPE) SEC_XML_DSIG_INFO Informationen für XML Signatur 20080408

Method TRACE_C14N on class CL_ST_CRYPTO has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 711