SAP ABAP Class CL_SAML20_UTILITY (utility class)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SEC-LGN-SML (Application Component) SAML 2.0
⤷
SAML2_CORE (Package) SAML2 Core Functionality
⤷
⤷
Properties
| Class | CL_SAML20_UTILITY | |
| Short Description | utility class | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SAML2_CORE | SAML2 Core Functionality |
| Created | 20100202 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... | |
| 3 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_SAML20_UTILITY has no interface implemented.
Friends
Class CL_SAML20_UTILITY has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | STRING | ':' | 20120326 | |||
| 2 | Constant | Public | Type reference (TYPE) | STRING | '://' | The URL schema separator | 20120326 | ||
| 3 | Constant | Public | Type reference (TYPE) | STRING | '443' | 20120327 | |||
| 4 | Constant | Public | Type reference (TYPE) | STRING | 'https' | 20120327 | |||
| 5 | Constant | Public | Type reference (TYPE) | STRING | '80' | 20120327 | |||
| 6 | Constant | Public | Type reference (TYPE) | STRING | 'http' | 20120327 | |||
| 7 | Constant | Public | Type reference (TYPE) | STRING | '#' | 20120326 | |||
| 8 | Constant | Public | Type reference (TYPE) | STRING | '?' | 20120326 | |||
| 9 | Constant | Public | Type reference (TYPE) | STRING | '/' | 20120326 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Checks existence of active trusted entity | 20121005 | |
| 2 | Static method | Public | Method | Checks the result of a BAPI call | 20130618 | |
| 3 | Static method | Private | Method | Check if SSF application exists and creates one | 20100202 | |
| 4 | Static method | Public | Method | Compare 2 URIs as per RFC 2396 | 20120327 | |
| 5 | Static method | Public | Method | Copies PSE from source SSF application to target one | 20100202 | |
| 6 | Static method | Public | Method | Returns path or URL without SAMLart | 20120113 | |
| 7 | Static method | Public | Method | Return the base URL (protocol + host + port) | 20110203 | |
| 8 | Static method | Public | Method | Get the comparison method corresponding to the input string | 20101206 | |
| 9 | Static method | Public | Method | Get the comparison method as string | 20101202 | |
| 10 | Static method | Public | Method | Returns the HTTP protocol (also in case of reverse proxy) | 20110517 | |
| 11 | Static method | Public | Method | Get PSE file name by SSF application | 20110419 | |
| 12 | Static method | Public | Method | Returns the text with replaced real params | 20100305 | |
| 13 | Static method | Public | Method | Return the value for the specified field in specified URL | 20110203 | |
| 14 | Static method | Public | Method | Checks if HTTPS is used (also in case of reverse proxy) | 20110513 | |
| 15 | Static method | Public | Method | Check URL if it is valid | 20110214 | |
| 16 | Static method | Public | Method | Lock PSE by provided SSF application | 20110411 | |
| 17 | Static method | Public | Method | Adds default port to the URL if it does not contain it | 20110513 | |
| 18 | Static method | Public | Method | 20100304 | ||
| 19 | Static method | Public | Method | Sets the hash algorithm for the specified SSF application | 20110415 | |
| 20 | Static method | Public | Method | Splits an URI to its parts | 20120326 | |
| 21 | Static method | Public | Method | Unlock PSE by provided SSF application | 20110411 | |
| 22 | Static method | Public | Method | Checks if two URLs are equal | 20110515 |
Events
Class CL_SAML20_UTILITY has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_BAPIRET_TABLE | Public | See coding | 20130618 | ty_bapiret_table type table of bapiret2
|
Method Signatures
Method CHECK_ACTIVE_TRUSTED_ENTITY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CLIENT | Call by reference | Type reference (TYPE) | MANDT | Client | 20121005 | |||
| 2 | IV_ENTITY_MODE | Call by reference | Type reference (TYPE) | SAML2_ENTITY_MODE | IF_SAML20_CONSTANTS=>CO_ENTITY_MODE_IDP | Operation Mode of SAML2 Entity | 20121005 | ||
| 3 | IV_TRUSTED_ENTITY_NAME | Call by reference | Type reference (TYPE) | STRING | Name of the trusted entity | 20121005 | |||
| 4 | RV_EXISTS_ACTIVE | Value transfer | Type reference (TYPE) | SAML2_BOOLEAN | True if trusted entity exists and is active | 20121005 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exceptions Within SAML2 Core Function | 20121005 |
Method CHECK_BAPI_RESULT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_BAPI_RES | Call by reference | Type reference (TYPE) | TY_BAPIRET_TABLE | 20130618 | ||||
| 2 | IV_BAPI_NAME | Call by reference | Type reference (TYPE) | STRING | 20130618 | ||||
| 3 | IV_TEXTID | Call by reference | Attribute reference (LIKE) | IF_T100_MESSAGE=>T100KEY | T100 Key with Parameters Mapped to Attribute Names | 20130618 | |||
| 4 | IV_TRACE | Call by reference | Object reference (TYPE REF TO) | CL_SAML20_TRACE | SAML 2.0 Tracing | 20130618 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exceptions Within SAML2 Core Function | 20130618 |
Method CHECK_SSF_APPLICATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IF_SSFAPPL | Call by reference | Type reference (TYPE) | SSFAPPL | SSF Application | 20100202 |
Method CHECK_SSF_APPLICATION on class CL_SAML20_UTILITY has no exception.
Method COMPARE_URIS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_URI_1 | Call by reference | Type reference (TYPE) | STRING | 20120327 | ||||
| 2 | IV_URI_2 | Call by reference | Type reference (TYPE) | STRING | 20120327 | ||||
| 3 | RV_EQUAL | Value transfer | Type reference (TYPE) | ABAP_BOOL | Returns TRUE if the URIs are equal | 20120327 |
Method COMPARE_URIS on class CL_SAML20_UTILITY has no exception.
Method COPY_PSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IF_SOURCE_SSFA | Call by reference | Type reference (TYPE) | SSFAPPL | SSF Application | 20100202 | |||
| 2 | IF_TARGET_SSFA | Call by reference | Type reference (TYPE) | SSFAPPL | SSF Application | 20100202 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SAML20 Superclass Exceptions | 20100202 |
Method GET_APPLICATION_URI Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EF_PATH | Call by reference | Type reference (TYPE) | STRING | 20120113 | ||||
| 2 | EF_URL | Call by reference | Type reference (TYPE) | STRING | 20120113 | ||||
| 3 | IO_HTTP_SERVER | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_SERVER | HTTP Framework (iHTTP) HTTP Server | 20120113 | |||
| 4 | IV_CLIENT | Call by reference | Type reference (TYPE) | MANDT | Client | 20120113 |
Method GET_APPLICATION_URI on class CL_SAML20_UTILITY has no exception.
Method GET_BASE_URL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_URL | Call by reference | Type reference (TYPE) | STRING | 20110203 | ||||
| 2 | RV_BASE_URL | Value transfer | Type reference (TYPE) | STRING | 20110203 |
Method GET_BASE_URL on class CL_SAML20_UTILITY has no exception.
Method GET_COMPARISON_METHOD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_COMPARISON_METHOD | Call by reference | Type reference (TYPE) | STRING | Comparison method as string | 20101206 | |||
| 2 | RV_COMPARISON_METHOD | Value transfer | Type reference (TYPE) | SAML2_COMPARISON_METHOD | Comparison method | 20101206 |
Method GET_COMPARISON_METHOD on class CL_SAML20_UTILITY has no exception.
Method GET_COMPARISON_METHOD_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_COMPARISON_METHOD | Call by reference | Type reference (TYPE) | SAML2_COMPARISON_METHOD | Comparison method | 20101202 | |||
| 2 | RV_COMPARISON_METHOD | Value transfer | Type reference (TYPE) | STRING | Comparison method as string | 20101202 |
Method GET_COMPARISON_METHOD_STRING on class CL_SAML20_UTILITY has no exception.
Method GET_ORIGINAL_PROTOCOL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_SERVER | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_SERVER | HTTP Framework (iHTTP) HTTP Server | 20110517 | |||
| 2 | RV_PROTOCOL | Value transfer | Type reference (TYPE) | STRING | 20110517 |
Method GET_ORIGINAL_PROTOCOL on class CL_SAML20_UTILITY has no exception.
Method GET_PSE_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_PSE_NAME | Call by reference | Type reference (TYPE) | SSFPSENAME | PSE file name | 20110419 | |||
| 2 | EV_RCODE | Call by reference | Type reference (TYPE) | SY-SUBRC | Return Value of ABAP Statements | 20110419 | |||
| 3 | IV_SSFAPPL | Call by reference | Type reference (TYPE) | SSFAPPL | SSF Application | 20110419 |
Method GET_PSE_NAME on class CL_SAML20_UTILITY has no exception.
Method GET_TEXT_WITH_PARAMS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_PARAM1 | Call by reference | Type reference (TYPE) | STRING | 20100305 | ||||
| 2 | IV_PARAM2 | Call by reference | Type reference (TYPE) | STRING | 20100305 | ||||
| 3 | IV_PARAM3 | Call by reference | Type reference (TYPE) | STRING | 20100305 | ||||
| 4 | IV_PARAM4 | Call by reference | Type reference (TYPE) | STRING | 20100305 | ||||
| 5 | IV_TEXT | Call by reference | Type reference (TYPE) | STRING | 20100305 | ||||
| 6 | RV_TEXT | Value transfer | Type reference (TYPE) | STRING | 20100305 |
Method GET_TEXT_WITH_PARAMS on class CL_SAML20_UTILITY has no exception.
Method GET_URL_FIELD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_FIELD_NAME | Call by reference | Type reference (TYPE) | STRING | Field name | 20110203 | |||
| 2 | IV_URL | Call by reference | Type reference (TYPE) | STRING | The URL | 20110203 | |||
| 3 | RV_FIELD_VALUE | Value transfer | Type reference (TYPE) | STRING | Filed value (empty if field not found) | 20110203 |
Method GET_URL_FIELD on class CL_SAML20_UTILITY has no exception.
Method IS_SSL_ACTIVE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_SERVER | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_SERVER | HTTP Framework (iHTTP) HTTP Server | 20110513 | |||
| 2 | RV_RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20110513 |
Method IS_SSL_ACTIVE on class CL_SAML20_UTILITY has no exception.
Method IS_URL_VALID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_URL | Call by reference | Type reference (TYPE) | STRING | 20110214 | ||||
| 2 | RV_RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20110214 |
Method IS_URL_VALID on class CL_SAML20_UTILITY has no exception.
Method LOCK_PSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_PSE_NAME | Call by reference | Type reference (TYPE) | SSFPSENAME | SSF Application | 20110427 | |||
| 2 | RV_RCODE | Value transfer | Type reference (TYPE) | SY-SUBRC | 20110411 |
Method LOCK_PSE on class CL_SAML20_UTILITY has no exception.
Method NORMALIZE_URL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_URL | Call by reference | Type reference (TYPE) | STRING | 20110513 | ||||
| 2 | RV_URL | Value transfer | Type reference (TYPE) | STRING | 20110513 |
Method NORMALIZE_URL on class CL_SAML20_UTILITY has no exception.
Method PARSE_SA_USREXTID_ENTRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_NAMEID_VALUE | Call by reference | Type reference (TYPE) | STRING | 20100304 | ||||
| 2 | EV_NAME_QUALIFIER | Call by reference | Type reference (TYPE) | STRING | 20100304 | ||||
| 3 | EV_TRUSTED_PROVIDER_NAME | Call by reference | Type reference (TYPE) | STRING | 20100304 | ||||
| 4 | IV_USREXTID_STRING | Call by reference | Type reference (TYPE) | STRING | 20100304 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SAML20 Superclass Exceptions | 20100304 |
Method SET_SSF_APPL_HASH_ALGORITHM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CLIENT | Call by reference | Type reference (TYPE) | MANDT | SY-MANDT | Client | 20110415 | ||
| 2 | IV_HASHALG | Call by reference | Type reference (TYPE) | SSFHASH | SSF Hash Algorithm | 20110415 | |||
| 3 | IV_SIGNALG | Call by reference | Type reference (TYPE) | SSFFORM | SSF format (DSA...) | 20110415 | |||
| 4 | IV_SSFAPPL | Call by reference | Type reference (TYPE) | SSFAPPL | SSF Application | 20110415 |
Method SET_SSF_APPL_HASH_ALGORITHM on class CL_SAML20_UTILITY has no exception.
Method SPLIT_URI Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FRAGMENT | Call by reference | Type reference (TYPE) | STRING | 20120326 | ||||
| 2 | EV_HOST | Call by reference | Type reference (TYPE) | STRING | 20120326 | ||||
| 3 | EV_PATH | Call by reference | Type reference (TYPE) | STRING | 20120326 | ||||
| 4 | EV_PORT | Call by reference | Type reference (TYPE) | STRING | 20120326 | ||||
| 5 | EV_PROTOCOL | Call by reference | Type reference (TYPE) | STRING | 20120326 | ||||
| 6 | EV_QUERY | Call by reference | Type reference (TYPE) | STRING | 20120326 | ||||
| 7 | IV_URI | Call by reference | Type reference (TYPE) | STRING | 20120326 |
Method SPLIT_URI on class CL_SAML20_UTILITY has no exception.
Method UNLOCK_PSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_PSE_NAME | Call by reference | Type reference (TYPE) | SSFPSENAME | SSF Application | 20110419 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exceptions Within SAML2 Core Function | 20110428 |
Method URLS_EQUAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_URL1 | Call by reference | Type reference (TYPE) | STRING | 20110515 | ||||
| 2 | IV_URL2 | Call by reference | Type reference (TYPE) | STRING | 20110515 | ||||
| 3 | RV_RESULT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20110515 |
Method URLS_EQUAL on class CL_SAML20_UTILITY has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 703 |