SAP ABAP Class CL_SMIME_EMAIL (S/MIME Adapter for email)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SEC-SSF (Application Component) Secure Store and Forward
⤷
SECF (Package) Secure Store & Forward (SSF) Support
⤷
⤷
Properties
| Class | CL_SMIME_EMAIL | |
| Short Description | S/MIME Adapter for email | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SECF | Secure Store & Forward (SSF) Support |
| Created | 20100705 | SAP |
| Last change | 20140121 | 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... |
Interfaces
Class CL_SMIME_EMAIL has no interface implemented.
Friends
Class CL_SMIME_EMAIL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | SMIMERCEMAIL | 5 | S/MIME return code for email | 20121128 | ||
| 2 | Constant | Public | Type reference (TYPE) | SMIMERCEMAIL | 2 | S/MIME return code for email | 20121128 | ||
| 3 | Constant | Public | Type reference (TYPE) | SMIMERCEMAIL | 3 | S/MIME return code for email | 20121128 | ||
| 4 | Constant | Public | Type reference (TYPE) | SMIMERCEMAIL | 1 | S/MIME return code for email | 20121128 | ||
| 5 | Constant | Public | Type reference (TYPE) | SMIMERCEMAIL | 4 | S/MIME return code for email | 20121128 | ||
| 6 | Constant | Public | Type reference (TYPE) | SMIMERCEMAIL | 0 | S/MIME return code for email | 20121128 | ||
| 7 | Constant | Public | Type reference (TYPE) | SMIMERCEMAIL | 6 | S/MIME return code for email | 20121128 | ||
| 8 | Static Attribute | Private | Object reference (TYPE REF TO) | IF_BADI_SMIME_EMAIL | Interface for BAdI: SMIME_EMAIL | 20130205 | |||
| 9 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_SMIME | S/MIME - API | 20110708 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20130205 | |
| 2 | Static method | Public | Method | Returns a S/MIME email instance | 20110708 | |
| 3 | Instance method | Public | Method | Decrypt the given data | 20110708 | |
| 4 | Instance method | Public | Method | Encrypt the given data | 20110708 | |
| 5 | Static method | Private | Method | Get certificate for the given email address | 20130205 | |
| 6 | Static method | Public | Method | Check whether email encryption is possible | 20121128 | |
| 7 | Static method | Public | Method | Check whether email signing is possible | 20121128 | |
| 8 | Static method | Private | Method | Set BAdI proxy instance for testing | 20130205 | |
| 9 | Instance method | Public | Method | Sign the given data | 20110708 | |
| 10 | Instance method | Public | Method | Verify the given data | 20110708 |
Events
Class CL_SMIME_EMAIL has no event.
Types
Class CL_SMIME_EMAIL has no local type.
Method Signatures
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_SMIME_EMAIL has no parameter.
Method CLASS_CONSTRUCTOR on class CL_SMIME_EMAIL has no exception.
Method CREATE_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_EMAIL | Call by reference | Type reference (TYPE) | STRING | 20110708 | ||||
| 2 | RO_SMIME_EMAIL | Value transfer | Object reference (TYPE REF TO) | CL_SMIME_EMAIL | S/MIME Adapter for email | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME cryptographic exception | 20110927 |
Method DECRYPT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_CRYPT_ALG | Call by reference | Type reference (TYPE) | SSFENCR | 20110708 | ||||
| 2 | EV_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 3 | EV_KEY_LEN | Call by reference | Type reference (TYPE) | SSFKEYLEN | 20110708 | ||||
| 4 | IV_ENCRYPTED_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME exception | 20110708 | ||
| 2 | S/MIME exception | 20110708 |
Method ENCRYPT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_ENCRYPTED_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 2 | IT_TO | Call by reference | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20110708 | |||
| 3 | IV_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20110708 | |||
| 2 | S/MIME exception | 20110708 |
Method GET_CERTIFICATE_BY_EMAIL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IF_EMAIL | Call by reference | Type reference (TYPE) | STRING | 20130205 | ||||
| 2 | IF_KEYUSAGE | Call by reference | Type reference (TYPE) | IF_BADI_SMIME_EMAIL=>TY_KEYUSAGE | Key usage | 20130205 | |||
| 3 | RO_CERTIFICATE | Value transfer | Object reference (TYPE REF TO) | CL_ABAP_X509_CERTIFICATE | Return elements of an X.509 Certificate | 20130205 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME cryptographic exception | 20130205 |
Method IS_ENCRYPTION_POSSIBLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_RECEIVER_EMAIL | Call by reference | Type reference (TYPE) | STRING | Table of Strings | 20121128 | |||
| 2 | RV_RC | Value transfer | Type reference (TYPE) | SMIMERCEMAIL | S/MIME return code for email | 20121128 |
Method IS_ENCRYPTION_POSSIBLE on class CL_SMIME_EMAIL has no exception.
Method IS_SIGNATURE_POSSIBLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SENDER_EMAIL | Call by reference | Type reference (TYPE) | STRING | 20121128 | ||||
| 2 | RV_RC | Value transfer | Type reference (TYPE) | SMIMERCEMAIL | Natural number | 20121128 |
Method IS_SIGNATURE_POSSIBLE on class CL_SMIME_EMAIL has no exception.
Method SET_BADI_PROXY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_BADI_PROXY | Call by reference | Object reference (TYPE REF TO) | IF_BADI_SMIME_EMAIL | Interface for BAdI: SMIME_EMAIL | 20130205 |
Method SET_BADI_PROXY on class CL_SMIME_EMAIL has no exception.
Method SIGN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_ALGORITHM | Call by reference | Type reference (TYPE) | SSFHASH | 20110708 | ||||
| 2 | EV_SIGNATURE | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 3 | IT_TO | Call by reference | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20110708 | |||
| 4 | IV_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 5 | IV_DETACHED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20110708 | |||
| 2 | S/MIME exception | 20110708 |
Method VERIFY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 2 | EV_HASH_ALG | Call by reference | Type reference (TYPE) | SSFHASH | 20110708 | ||||
| 3 | IV_DETACHED_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 4 | IV_FROM | Call by reference | Type reference (TYPE) | STRING | 20110708 | ||||
| 5 | IV_SIGNATURE | Call by reference | Type reference (TYPE) | XSTRING | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20110708 | |||
| 2 | S/MIME exception | 20110708 |
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in |