SAP ABAP Class CL_OAUTH2_S_CONTEXT (OAuth2 Server Context (Server Impl.))
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SEC (Application Component) Security
⤷
SOAUTH2 (Package) OAuth2
⤷
⤷
Properties
| Class | CL_OAUTH2_S_CONTEXT | |
| Short Description | OAuth2 Server Context (Server Impl.) | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SOAUTH2 | OAuth2 |
| Created | 20111011 | 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 class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 3 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_OAUTH2_S_CONTEXT has no interface implemented.
Friends
| # | Friend | Modeled only | Created on | Description |
|---|---|---|---|---|
| 1 | CL_OAUTH2_S_PROT_AUTH_CODE | 20121022 | OAuth 2.0 Protocol Authorization Grant Type | |
| 2 | CL_OAUTH2_S_PROT_SAML2 | 20111012 | OAuth2 Protocol SAML2 Grant Type | |
| 3 | CL_OAUTH2_S_RESOURCE_SERVER | 20120124 | OAuth2 Resource Server (Server Implementation, Runtime) | |
| 4 | CL_OAUTH2_S_TOKEN_MANAGER | 20121210 | OAuth 2.0 Token Manager |
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Type reference (TYPE) | IF_OAUTH2=>TY_S_ACCESS_TOKEN | 20111011 | ||||
| 2 | Instance attribute | Private | Type reference (TYPE) | OA2_SR_CTX | OAuth2 ServerContext (Server Implementation, Runtime) | 20111011 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | TY_T_OA_AT_SCOPE | 20111011 | ||||
| 4 | Instance attribute | Private | Type reference (TYPE) | XSTRING | 20111014 | ||||
| 5 | Instance attribute | Private | Attribute reference (LIKE) | SY-MANDT | Client ID of Current User | 20111102 |
Methods
Events
Class CL_OAUTH2_S_CONTEXT has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_T_OA_AT_SCOPE | Private | See coding | 20111011 | ty_t_oa_at_scope TYPE STANDARD TABLE OF OA2_SR_CTX_SC
|
Method Signatures
Method BUILD_WHERE_CONDITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_NOT_APPLY | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130104 | ||||
| 2 | E_WHERE_CONDITION | Call by reference | Type reference (TYPE) | STRING | 20130104 | ||||
| 3 | IS_REVOCATION | Call by reference | Type reference (TYPE) | CL_OAUTH2_S_TOKEN_MANAGER=>TY_S_REVOCATION | 20130104 | ||||
| 4 | I_TOKEN_TYPE | Call by reference | Type reference (TYPE) | I | 20130104 |
Method BUILD_WHERE_CONDITION on class CL_OAUTH2_S_CONTEXT has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_SCOPE | Call by reference | Type reference (TYPE) | STRING_TABLE | 20111011 | ||||
| 2 | I_CLIENT_ID | Call by reference | Type reference (TYPE) | STRING | 20111011 | ||||
| 3 | I_EXPIRES_IN | Call by reference | Type reference (TYPE) | I | 3600 | 20111011 | |||
| 4 | I_MANDT | Call by reference | Attribute reference (LIKE) | SY-MANDT | Client ID of Current User | 20111102 | |||
| 5 | I_RO_USER | Call by reference | Type reference (TYPE) | XUBNAME | 20111011 | ||||
| 6 | I_TOKEN_TYPE | Call by reference | Type reference (TYPE) | STRING | IF_OAUTH2=>C_ACCESS_TOKEN_TYPE_BEARER | 20111011 | |||
| 7 | I_WITH_REFRESH_TOKEN | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20111011 |
Method CONSTRUCTOR on class CL_OAUTH2_S_CONTEXT has no exception.
Method CONVERT_ACCESS_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ACCESS_TOKEN | Call by reference | Type reference (TYPE) | STRING | 20111011 | ||||
| 2 | R_CONTEXT_ID | Value transfer | Type reference (TYPE) | STRING | 20111011 |
Method CONVERT_ACCESS_TOKEN on class CL_OAUTH2_S_CONTEXT has no exception.
Method CONVERT_B64URL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_TOKEN_X | Call by reference | Type reference (TYPE) | XSTRING | 20111014 | ||||
| 2 | R_ACCESS_TOKEN | Value transfer | Type reference (TYPE) | STRING | 20111014 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | OAuth2 Exception | 20111026 |
Method CONVERT_RANDOM Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_RANDOM | Call by reference | Type reference (TYPE) | XSTRING | 20111014 | ||||
| 2 | R_RANDOM_HASH | Value transfer | Type reference (TYPE) | XSTRING | 20111014 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | OAuth2 Exception | 20111026 |
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_AUTH_CODE_CTX | Call by reference | Object reference (TYPE REF TO) | CL_OAUTH2_S_AUTH_CONTEXT | OAuth2 Server Context (Server Impl.) | 20121109 | |||
| 2 | IR_SCOPE_COLLECTION | Call by reference | Object reference (TYPE REF TO) | CL_OAUTH2_S_SCOPE_COLLECTION | OAuth2 Scope Collection | 20111011 | |||
| 3 | I_CLIENT_ID | Call by reference | Type reference (TYPE) | STRING | 20111011 | ||||
| 4 | I_EXPIRES_IN | Call by reference | Type reference (TYPE) | I | 3600 | 20111011 | |||
| 5 | I_MANDT | Call by reference | Attribute reference (LIKE) | SY-MANDT | Client ID of Current User | 20111102 | |||
| 6 | I_RO_USER | Call by reference | Type reference (TYPE) | XUBNAME | User Name in User Master Record | 20111011 | |||
| 7 | I_TOKEN_TYPE | Call by reference | Type reference (TYPE) | STRING | IF_OAUTH2=>C_ACCESS_TOKEN_TYPE_BEARER | 20111011 | |||
| 8 | I_WITH_REFRESH_TOKEN | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20111011 | |||
| 9 | R_R_ACCESS_TOKEN | Value transfer | Object reference (TYPE REF TO) | CL_OAUTH2_S_CONTEXT | OAuth2 Access Token | 20111011 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | OAuth2 Exception | 20111026 |
Method DB_READ Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_AT_CONTEXT_ID | Call by reference | Type reference (TYPE) | OA2_S_CONTEXT_ID | OAuth2 Access Token Context ID | 20111011 |
Method DB_READ on class CL_OAUTH2_S_CONTEXT has no exception.
Method DB_SAVE Signature
Method DB_SAVE on class CL_OAUTH2_S_CONTEXT has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | OAuth2 Exception | 20111026 |
Method DELETE_FROM_AUTH_CODE_CTX Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_AUTH_CODE_CTX | Call by reference | Object reference (TYPE REF TO) | CL_OAUTH2_S_AUTH_CONTEXT | OAuth2 Server Context (Server Impl.) | 20121109 |
Method DELETE_FROM_AUTH_CODE_CTX on class CL_OAUTH2_S_CONTEXT has no exception.
Method FILL_ACCESS_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ACCESS_TOKEN | Call by reference | Type reference (TYPE) | STRING | 20111011 | ||||
| 2 | I_EXPIRES_IN | Call by reference | Type reference (TYPE) | I | 3600 | 20111011 | |||
| 3 | I_TOKEN_TYPE | Call by reference | Type reference (TYPE) | CSEQUENCE | IF_OAUTH2=>C_ACCESS_TOKEN_TYPE_BEARER | 20111011 | |||
| 4 | I_WITH_REFRESH_TOKEN | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20111011 |
Method FILL_ACCESS_TOKEN on class CL_OAUTH2_S_CONTEXT has no exception.
Method GENERATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_AUTH_CODE_CTX | Call by reference | Object reference (TYPE REF TO) | CL_OAUTH2_S_AUTH_CONTEXT | OAuth2 Server Context (Server Impl.) | 20121109 | |||
| 2 | IR_SCOPE_COLLECTION | Call by reference | Object reference (TYPE REF TO) | CL_OAUTH2_S_SCOPE_COLLECTION | OAuth2 Scope Collection | 20111011 | |||
| 3 | I_CLIENT_ID | Call by reference | Type reference (TYPE) | STRING | 20111011 | ||||
| 4 | I_EXPIRES_IN | Call by reference | Type reference (TYPE) | I | 3600 | 20111011 | |||
| 5 | I_RO_USER | Call by reference | Type reference (TYPE) | XUBNAME | User Name in User Master Record | 20111011 | |||
| 6 | I_TOKEN_TYPE | Call by reference | Type reference (TYPE) | STRING | IF_OAUTH2=>C_ACCESS_TOKEN_TYPE_BEARER | 20111011 | |||
| 7 | I_WITH_REFRESH_TOKEN | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20111011 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | OAuth2 Exception | 20111026 |
Method GENERATE_TOKEN_PARTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_RANDOM | Call by reference | Type reference (TYPE) | XSTRING | 20111014 | ||||
| 2 | E_UUID | Call by reference | Type reference (TYPE) | SYSUUID_X16 | 20111014 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | OAuth2 Exception | 20111026 |
Method GET_ACCESS_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RS_ACCESS_TOKEN | Value transfer | Type reference (TYPE) | IF_OAUTH2=>TY_S_ACCESS_TOKEN | 20111011 |
Method GET_ACCESS_TOKEN on class CL_OAUTH2_S_CONTEXT has no exception.
Method LOAD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ACCESS_TOKEN | Call by reference | Type reference (TYPE) | STRING | 20111011 | ||||
| 2 | I_MANDT | Call by reference | Attribute reference (LIKE) | SY-MANDT | Client ID of Current User | 20111102 | |||
| 3 | R_R_ACCESS_TOKEN | Value transfer | Object reference (TYPE REF TO) | CL_OAUTH2_S_CONTEXT | OAuth2 Access Token | 20111011 |
Method LOAD on class CL_OAUTH2_S_CONTEXT has no exception.
Method READ Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_ACCESS_TOKEN | Call by reference | Type reference (TYPE) | STRING | 20111011 |
Method READ on class CL_OAUTH2_S_CONTEXT has no exception.
Method READ_CONTEXT_ASSIGNED_SCOPES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_ASSIGNED_CONTEXTS | Call by reference | Type reference (TYPE) | CL_OAUTH2_S_TOKEN_MANAGER=>TY_T_ASSIGNED_SCOPES | OAuth 2.0 Token Manager | 20121221 | |||
| 2 | I_CONTEXT_ID | Call by reference | Type reference (TYPE) | OA2_S_CONTEXT_ID | OAuth 2.0 ServerContext ID | 20121221 |
Method READ_CONTEXT_ASSIGNED_SCOPES on class CL_OAUTH2_S_CONTEXT has no exception.
Method READ_MULTI Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_TOKEN | Call by reference | Type reference (TYPE) | CL_OAUTH2_S_TOKEN_MANAGER=>TY_T_TOKEN | 20121213 | ||||
| 2 | IT_REVOCATION | Call by reference | Type reference (TYPE) | CL_OAUTH2_S_TOKEN_MANAGER=>TY_T_REVOCATION | 20121213 | ||||
| 3 | I_READ_ALL | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20121216 |
Method READ_MULTI on class CL_OAUTH2_S_CONTEXT has no exception.
Method REVOKE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_REVOCATION | Call by reference | Type reference (TYPE) | CL_OAUTH2_S_TOKEN_MANAGER=>TY_T_REVOCATION | 20121210 |
Method REVOKE on class CL_OAUTH2_S_CONTEXT has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 732 |