SAP ABAP Class CL_SPNEGO_KERNEL (Kernel methods for SPNego)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SEC-LGN (Application Component) Authentication and SSO
     SPNEGO (Package) SPNego
Properties
Class CL_SPNEGO_KERNEL  
Short Description Kernel methods for SPNego    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SPNEGO   SPNego 
Created 20120404   SAP 
Last change 20140121   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_SPNEGO_KERNEL has no interface implemented.
Friends
# Friend Modeled only Created on Description
1 CL_KRB_CONFIG_UI 20130103 API for Kerberos Configuration UIs
2 CL_KRB_KEYTAB 20120724 KeyTab Implemenation based on Kerberos Library
3 CL_KRB_KEYTAB_SECSTORE 20120813 KeyTab Implementation based on Kerberos Library
4 CL_SPNEGO_RUNTIME 20120620 Runtime class for SPNego called by ICF
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 STATUS_LIB_AND_KEYTAB_LOADED Constant Private Type reference (TYPE) I 0 Kerberos library and KeyTab loaded 20130122
2 STATUS_LIB_LOADED_NO_KEYTAB Constant Private Type reference (TYPE) I 1 Kerberos library loaded and KeyTab not available 20130122
3 STATUS_LIB_NOT_LOADED Constant Private Type reference (TYPE) I 2 Kerberos library not loaded 20130122
Methods
# Method Level Visibility Method type Description Created on
1 _ADD_SPN_TO_KEYTAB Static method Private Method Add SPN to keytab (requires SPNego library) 20120516
2 _AUTHENTICATE Static method Private Method Authenticate the HTTP request with an SPNego token 20120628
3 _DELETE_SPN_FROM_KEYTAB Static method Private Method Delete entries from keytab (requires SPNego library) 20120516
4 _GET_ALGORITHM_NAME Static method Private Method Get textual description (English only) for algorithm ID 20121220
5 _GET_RUNTIME_STATUS Static method Private Method 0: library not loaded, 1: library loaded, 2: keytab loaded 20120628
6 _GET_SUPPORTED_ALGORITHMS Static method Private Method Get list of algorithms supported by Kerberos library 20121220
7 _MERGE_KEYTABS Static method Private Method Insert entries of one keytab into another one (requires lib) 20120516
8 _PARSE_KEYTAB Static method Private Method Parses binary keytab (requires SPNego library) 20120516
9 _READ_KEYTAB_FROM_SECSTORE Static method Private Method Read binary keytab from Secure Storage 20120404
10 _WRITE_KEYTAB_TO_SECSTORE Static method Private Method Write binary keytab to Secure Storage 20120404
Events
Class CL_SPNEGO_KERNEL has no event.
Types
Class CL_SPNEGO_KERNEL has no local type.
Method Signatures

Method _ADD_SPN_TO_KEYTAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ADD_MODE Call by reference Type reference (TYPE) KRB_KEYTAB_ADD_MODE IF_KRB_KEYTAB=>CO_KEYTAB_ADD_APPEND 20120516
2 Importing ALGORITHMS Call by reference Type reference (TYPE) KRB_KEYTAB_ALGORITHM_T 20120516
3 Returning KEYTAB Value transfer Type reference (TYPE) XSTRING 20120516
4 Importing KEYTAB_IN Call by reference Type reference (TYPE) XSTRING 20120516
5 Importing PASSWORD Call by reference Type reference (TYPE) KRB_SPN_PASSWORD 20120516
6 Importing SPN Call by reference Type reference (TYPE) KRB_KEYTAB_SPN 20120516
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB 20120516

Method _AUTHENTICATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting AUTH_RC Call by reference Type reference (TYPE) SYSUBRC Return Value of ABAP Statements 20120628
2 Importing CLIENT Call by reference Type reference (TYPE) MANDT Client 20120628
3 Importing LANGUAGE Call by reference Type reference (TYPE) LANGU Language Key 20120628
4 Exporting PWDSTATE Call by reference Type reference (TYPE) XUPWDSTATE Status of User Password (Value: -2/-1/0/1/2/3, see doc.) 20120628
5 Importing SPNEGO_TOKEN Call by reference Type reference (TYPE) SPNEGO_TOKEN SPNego Token 20120628
# Exception Resumable Description Created on
1 CX_PERSONALIZE_SESSION Exception class for authentication methods (caller problems) 20120705

Method _DELETE_SPN_FROM_KEYTAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ALGORITHMS Call by reference Type reference (TYPE) KRB_KEYTAB_ALGORITHM_T 20120516
2 Returning KEYTAB Value transfer Type reference (TYPE) XSTRING 20120516
3 Importing KEYTAB_IN Call by reference Type reference (TYPE) XSTRING 20120516
4 Importing SPN Call by reference Type reference (TYPE) KRB_KEYTAB_SPN 20120516
5 Importing VERSION Call by reference Type reference (TYPE) KRB_KEYTAB_VERSION -1 20120516
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB 20120516

Method _GET_ALGORITHM_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ALGORITHM_ID Call by reference Type reference (TYPE) KRB_KEYTAB_ALGORITHM Kerberos Encryption Algorithm Id 20121220
2 Returning ALGORITHM_NAME Value transfer Type reference (TYPE) KRB_KEYTAB_ALGORITHM_NAME Kerberos Encryption Algorithm Name 20121220
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB Exception class for Kerberos KeyTab 20121221

Method _GET_RUNTIME_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning STATUS Value transfer Type reference (TYPE) SPNEGO_RUNTIME_STATUS 0: library not loaded, 1: library loaded, 2: keytab loaded 20120628

Method _GET_RUNTIME_STATUS on class CL_SPNEGO_KERNEL has no exception.

Method _GET_SUPPORTED_ALGORITHMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ALGORITHMS Call by reference Type reference (TYPE) KRB_KEYTAB_ALGORITHM_T Kerberos Algorithm List 20121220
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB Exception class for Kerberos KeyTab 20121221

Method _MERGE_KEYTABS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning KEYTAB Value transfer Type reference (TYPE) XSTRING 20120516
2 Importing KEYTAB1_IN Call by reference Type reference (TYPE) XSTRING 20120516
3 Importing KEYTAB2_IN Call by reference Type reference (TYPE) XSTRING 20120516
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB 20120516

Method _PARSE_KEYTAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing KEYTAB Call by reference Type reference (TYPE) XSTRING 20120516
2 Returning KEYTAB_PARSED Value transfer Type reference (TYPE) KRB_KEYTAB_T 20120516
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB 20120516

Method _READ_KEYTAB_FROM_SECSTORE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning KEYTAB Value transfer Type reference (TYPE) XSTRING Binary Kerberos KeyTab 20120404
2 Importing TESTMODE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Flag for Unit Test Operation 20120404
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB Exception class for Kerberos KeyTab 20120426

Method _WRITE_KEYTAB_TO_SECSTORE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing KEYTAB Call by reference Type reference (TYPE) XSTRING Binary Kerberos KeyTab 20120404
2 Importing TESTMODE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Flag for Unit Test Operation 20120404
# Exception Resumable Description Created on
1 CX_KRB_KEYTAB Exception class for Kerberos KeyTab 20120426
History
Last changed by/on SAP  20140121 
SAP Release Created in 732