SAP ABAP Class CL_SECURITY_TOKEN (WS Security: Abstract Security Token)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SEC (Application Component) Security
     SOAP_SECURITY (Package) SOAP Security
Meta Relationship - Used By
# Relationship type Used by Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_ST_CRYPTO WS Security: Abstract Crypto Token 20071228
2 Inheritance (c INHERITING FROM c_ref)  CL_ST_TIMESTAMP WS Security: wsu:Timestamp Token 20071228
3 Inheritance (c INHERITING FROM c_ref)  CL_ST_USERNAME10 WS Security: wsse:Username Token 20071228
Properties
Class CL_SECURITY_TOKEN  
Short Description WS Security: Abstract Security Token    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SOAP_SECURITY   SOAP Security 
Created 20071218   SAP 
Last change 20130531   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)
2 TSOAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 TSRTM Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_SECURITY_TOKEN has no interface implemented.
Friends
# Friend Modeled only Created on Description
1 CL_WSSE_CONTEXT 20101220 WSSE Context
2 CL_WSSE_PROCESSOR 20101220 WS Security Processing
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CO_CLASS_NAME Constant Protected Type reference (TYPE) STRING 'CL_SECURITY_TOKEN' 20071219
2 CO_ERR_AREA_ID Constant Protected Type reference (TYPE) STRING 'Security' Area ID 20071219
3 CO_PART_ALL_HEADERS Constant Protected Type reference (TYPE) STRING 'wssp:Header(*)' 20080213
4 CO_PART_SEC_SAML Constant Protected Type reference (TYPE) STRING 'wssp:Header(wsse:Security/saml:Assertion)' 20080213
5 CO_PART_SEC_SIGNATURE Constant Protected Type reference (TYPE) STRING 'wssp:Header(wsse:Security/dis:Signature)' 20080213
6 CO_PART_SEC_TIMESTAMP Constant Protected Type reference (TYPE) STRING 'wssp:Header(wsse:Security/wsu:Timestamp)' 20080213
7 CO_PART_SEC_USERNAME Constant Protected Type reference (TYPE) STRING 'wssp:Header(wsse:Security/wsse:UsernameToken)' 20080213
8 CO_PROCESSOR_ID Constant Protected Type reference (TYPE) STRING TSRTM_PROC_ID_SECURITY_PROT 20071219
9 CO_SP_INC_ALWAYS Constant Protected Type reference (TYPE) STRING 'Always' 20080529
10 CO_SP_INC_ALWAYSTOINITIATOR Constant Protected Type reference (TYPE) STRING 'AlwaysToInitiator' 20080529
11 CO_SP_INC_ALWAYSTORECIPIENT Constant Protected Type reference (TYPE) STRING 'AlwaysToRecipient' 20080529
12 CO_SP_INC_NEVER Constant Public Type reference (TYPE) STRING 'Never' 20080529
13 CO_SP_INC_ONCE Constant Protected Type reference (TYPE) STRING 'Once' 20080529
14 CO_ST_DK Constant Public Type reference (TYPE) CHAR32 'DERIVED_KEY' Characterfeld der Länge 32 20080424
15 CO_ST_ENCRYPT Constant Public Type reference (TYPE) CHAR32 'ENCRYPTING TOKEN' Characterfeld der Länge 32 20080102
16 CO_ST_ENDORSING Constant Public Type reference (TYPE) CHAR32 'ST Endorsing' Endorsing 20080427
17 CO_ST_ENDORSING_2 Constant Private Type reference (TYPE) CHAR32 'ST Endorsing 2' Endorsing 2 20090206
18 CO_ST_ISSUED_TOKEN Constant Public Type reference (TYPE) CHAR32 'ISSUED TOKEN' Character field, length 32 20080724
19 CO_ST_SAML10 Constant Public Type reference (TYPE) CHAR32 'SAML 1.1 SUPPORTING TOKEN' Characterfeld der Länge 32 20080228
20 CO_ST_SCT Constant Public Type reference (TYPE) CHAR32 'SCT 2005/02 Token' Characterfeld der Länge 32 20080310
21 CO_ST_SCT13 Constant Public Type reference (TYPE) CHAR32 'SCT 1.3 Token' Characterfeld der Länge 32 20080211
22 CO_ST_SIGN Constant Public Type reference (TYPE) CHAR32 'SIGNING TOKEN' Characterfeld der Länge 32 20080102
23 CO_ST_SUPPORTING Constant Public Type reference (TYPE) CHAR32 'SUPPORTING TOKEN' Characterfeld der Länge 32 20080102
24 CO_ST_SYSTEM Constant Public Type reference (TYPE) CHAR32 'SYSTEM SIGNING TOKEN' Characterfeld der Länge 32 20080312
25 CO_ST_TIMESTAMP Constant Public Type reference (TYPE) CHAR32 'TIMESTAMP' Timestamp 20080102
26 CO_ST_X509 Constant Public Type reference (TYPE) CHAR32 'X509 Private key Signature' 'X509 Private key Signature' 20080213
27 M_DSIG_REF_TAB Instance attribute Protected Type reference (TYPE) SEC_DSIG_REFERENCE_TAB Table of ds:Reference 20071218
28 M_ENCRYPTED Instance attribute Protected Type reference (TYPE) C ABAP_FALSE Security Token verschlüsselt? 20071218
29 M_HEADER_WRITTEN Instance attribute Public Type reference (TYPE) C Security Header bereits geschrieben 20080117
30 M_ID_TAB Instance attribute Protected Type reference (TYPE) IF_WSSE_TYPES=>SEC_HEADER_ID_TAB Tabelle mit Pfad/wsu:Id 20080213
31 M_SIGNED Instance attribute Protected Type reference (TYPE) C Security Token Signiert? 20071218
32 M_TK_ENCRYPTED Instance attribute Protected Type reference (TYPE) BOOLEAN ABAP_FALSE Boolean Variable (X=True, -=False, Space=Unknown) 20081125
Methods
# Method Level Visibility Method type Description Created on
1 ADD_WSUID Static method Protected Method wsu:Id hinzufügen 20080102
2 APPEND_SECURITY_HEADER Instance method Public Method Security Token in den Security Header schreiben 20071218
3 APPLY Instance method Public Method Security Token erzeugen 20071218
4 COMPUTE_DIGEST_SH Instance method Protected Method Digest auf einem Object innerhalb des Security Headers ber. 20071219
5 COMPUTE_DIGEST_XML Instance method Protected Method Calculate Digest for a given XML xstring 20100929
6 CONSTRUCTOR Instance method Public Constructor 20071227
7 ENCRYPT_TOKEN Instance method Protected Method Token verschlüsseln 20080320
8 ENCRYPT_TOKEN_BY_ID Instance method Protected Method Token verschlüsseln 20080505
9 GET_DSIG_REFERENCE Instance method Protected Method Signaturwert für Security Token ermitteln 20071228
10 GET_STR_FRAGMENT Static method Protected Method wsse:SecurityTokenReference Fragment erzeugen 20080131
11 IS_CRYPTO_TOKEN Instance method Public Method 20080602
12 IS_TOKEN_REUSED Instance method Public Method 20080602
13 RAISE_EXCEPTION Instance method Protected Method Fehler in Verarbeitung 20071218
14 READ_UTC_TIME Instance method Protected Method UTC Zeitstempel lesen 20080228
15 VERIFY_CREATED Instance method Public Method wsu:Created Element prüfen 20080228
16 VERIFY_EXPIRES Instance method Public Method wsu:Check Created Element 20080716
17 VERIFY_TIMESTAMP Instance method Public Method wsu:Created und wsu:Expires prüfen 20120925
18 WRITE_UTC_TIME Static method Protected Method Zeit in UTC String umwandeln 20071218
Events
Class CL_SECURITY_TOKEN has no event.
Types
Class CL_SECURITY_TOKEN has no local type.
Method Signatures

Method ADD_WSUID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ID Value transfer Type reference (TYPE) STRING ID in Character-Darstellung 20080102
2 Importing IM_PART Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART 20080102

Method ADD_WSUID on class CL_SECURITY_TOKEN has no exception.

Method APPEND_SECURITY_HEADER 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 Tabelle von SEC_WSSE_SECURITY 20071218

Method APPEND_SECURITY_HEADER on class CL_SECURITY_TOKEN has no exception.

Method APPLY 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 20071229
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 20071229
4 Importing HEADER_PARTS_SIG Call by reference Object reference (TYPE REF TO) IF_SXMLP_PART_COLLECTION Header parts for signing 20090310
5 Importing SEC_WRITER Call by reference Object reference (TYPE REF TO) CL_SEC_SXML_WRITER Secure SXML Writer 20080108
6 Importing ST_TAB Call by reference Type reference (TYPE) IF_WSSE_TYPES=>SEC_ST_TAB Tabelle von SEC_ST_ENTRY 20080102
7 Importing WSS_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20071218

Method APPLY on class CL_SECURITY_TOKEN has no exception.

Method COMPUTE_DIGEST_SH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATA_REF Call by reference Object reference (TYPE REF TO) DATA 20071219
2 Importing DIGEST_METHOD Call by reference Type reference (TYPE) STRING Digest Method Uri 20091130
3 Importing NAME Call by reference Type reference (TYPE) CLIKE 20071219
4 Returning REFERENCE Value transfer Type reference (TYPE) SEC_DSIG_REFERENCE ds:Reference 20071219
5 Importing TRANSFORMATION Call by reference Type reference (TYPE) CXSLTDESC Allgemeine Schnittstelle für Parts 20071219
6 Importing USE_STR_TRANSFORM Call by reference Type reference (TYPE) BOOLEAN ABAP_FALSE Boolean Variable (X=True, -=False, Space=Unknown) 20090218

Method COMPUTE_DIGEST_SH on class CL_SECURITY_TOKEN has no exception.

Method COMPUTE_DIGEST_XML 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 20100929
2 Returning REFERENCE Value transfer Type reference (TYPE) SEC_DSIG_REFERENCE ds:Reference 20100929
3 Importing USE_STR_TRANSFORM Call by reference Type reference (TYPE) BOOLEAN ABAP_FALSE Boolean Variable (X=True, -=False, Space=Unknown) 20100929
4 Importing XML Call by reference Type reference (TYPE) XSTRING 20100929

Method COMPUTE_DIGEST_XML on class CL_SECURITY_TOKEN has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_SECURITY_TOKEN has no parameter.
Method CONSTRUCTOR on class CL_SECURITY_TOKEN has no exception.

Method ENCRYPT_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_REF_LST Call by reference Type reference (TYPE) SEC_XENC_DATAREFERENCE_TAB Tabelle von xenc:DataReference 20080320
2 Importing IR_SEC_WRITER Call by reference Object reference (TYPE REF TO) CL_SEC_SXML_WRITER Secure SXML Writer 20080320
3 Importing IS_KEY Call by reference Type reference (TYPE) SEC_XML_XENC_INFO xenc:DataReference 20080320
4 Importing WSS_CTX Call by reference Object reference (TYPE REF TO) CL_WSSE_CONTEXT WSSE Context 20090121

Method ENCRYPT_TOKEN on class CL_SECURITY_TOKEN has no exception.

Method ENCRYPT_TOKEN_BY_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_REF_LST Call by reference Type reference (TYPE) SEC_XENC_DATAREFERENCE_TAB Tabelle von xenc:DataReference 20080505
2 Importing IF_WSU_ID Call by reference Type reference (TYPE) STRING 20080505
3 Importing IR_SEC_WRITER Call by reference Object reference (TYPE REF TO) CL_SEC_SXML_WRITER Secure SXML Writer 20080505
4 Importing IS_KEY Call by reference Type reference (TYPE) SEC_XML_XENC_INFO xenc:DataReference 20080505

Method ENCRYPT_TOKEN_BY_ID on class CL_SECURITY_TOKEN has no exception.

Method GET_DSIG_REFERENCE 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 20101202
2 Exporting REFERENCE Call by reference Type reference (TYPE) SEC_DSIG_REFERENCE ds:Reference 20071228

Method GET_DSIG_REFERENCE on class CL_SECURITY_TOKEN has no exception.

Method GET_STR_FRAGMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing KEY_IDENTIFIER Call by reference Type reference (TYPE) STRING 20080316
2 Importing NO_NUMBER_SIGN Call by reference Type reference (TYPE) CHAR01 Charakterfeld der Länge 1 20080604
3 Importing SC_INSTANCE Call by reference Type reference (TYPE) STRING 20090402
4 Returning STR_XML Value transfer Type reference (TYPE) XSDANY XML-Fragment 20080131
5 Importing TOKEN_TYPE Call by reference Type reference (TYPE) STRING 20080523
6 Importing URI Call by reference Type reference (TYPE) STRING 20080131
7 Importing VALUE_TYPE Call by reference Type reference (TYPE) STRING 20080131

Method GET_STR_FRAGMENT on class CL_SECURITY_TOKEN has no exception.

Method IS_CRYPTO_TOKEN Signature

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

Method IS_CRYPTO_TOKEN on class CL_SECURITY_TOKEN has no exception.

Method IS_TOKEN_REUSED Signature

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

Method IS_TOKEN_REUSED on class CL_SECURITY_TOKEN has no exception.

Method RAISE_EXCEPTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CODE Call by reference Type reference (TYPE) TSOAP_FAULT_CODE TSOAP_FC_CLIENT 20071218
2 Importing FAULTCODE Call by reference Type reference (TYPE) STRING 'InvalidSecurity' 20071218
3 Importing REASON_LANGUAGE Call by reference Type reference (TYPE) LANGU 'E' Sprachenschlüssel 20071218
4 Importing REASON_TEXT Call by reference Type reference (TYPE) STRING 20071218

Method RAISE_EXCEPTION on class CL_SECURITY_TOKEN has no exception.

Method READ_UTC_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing STRING Call by reference Type reference (TYPE) STRING 20080228
2 Returning TIMESTAMP Value transfer Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20080228

Method READ_UTC_TIME on class CL_SECURITY_TOKEN has no exception.

Method VERIFY_CREATED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing AGE Call by reference Type reference (TYPE) I 20080228
2 Importing CREATED Call by reference Type reference (TYPE) STRING 20080228

Method VERIFY_CREATED on class CL_SECURITY_TOKEN has no exception.

Method VERIFY_EXPIRES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing EXPIRES Call by reference Type reference (TYPE) STRING 20080716

Method VERIFY_EXPIRES on class CL_SECURITY_TOKEN has no exception.

Method VERIFY_TIMESTAMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_TS Call by reference Type reference (TYPE) SEC__WSU_TIMESTAMP wsu:Timestamp 20120925

Method VERIFY_TIMESTAMP on class CL_SECURITY_TOKEN has no exception.

Method WRITE_UTC_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing AGE Call by reference Type reference (TYPE) I 20080121
2 Importing CLOCK_SKEW Call by reference Type reference (TYPE) INT2 2 byte integer (signed) 20090903
3 Returning STRING Value transfer Type reference (TYPE) STRING 20071218
4 Importing TIMESTAMP Call by reference Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20071218

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