SAP ABAP Class CL_SMIME (S/MIME - API)
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 | |
| Short Description | S/MIME - API | |
| 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 | 20100618 | 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) |
Interfaces
Class CL_SMIME has no interface implemented.
Friends
Class CL_SMIME has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | CR_PROFILE | 'SMIME' | Profile Name | 20111017 | ||
| 2 | Constant | Public | Type reference (TYPE) | SSFHASH | 'MD5' | SSF Hash Algorithm | 20110708 | ||
| 3 | Constant | Public | Type reference (TYPE) | SSFHASH | 'SHA1' | SSF Hash Algorithm | 20110708 | ||
| 4 | Constant | Public | Type reference (TYPE) | SSFHASH | 'SHA256' | SSF Hash Algorithm | 20110708 | ||
| 5 | Constant | Public | Type reference (TYPE) | SSFHASH | 'SHA384' | SSF Hash Algorithm | 20110708 | ||
| 6 | Constant | Public | Type reference (TYPE) | SSFHASH | 'SHA512' | SSF Hash Algorithm | 20110708 | ||
| 7 | Constant | Public | Type reference (TYPE) | PSECONTEXT | 'SMIM' | Application Context of a PSE | 20110801 | ||
| 8 | Constant | Private | Type reference (TYPE) | SSFENCR | 'DES-EDE3-CBC' | SSF Encryption Algrorithm | 20110708 | ||
| 9 | Constant | Private | Type reference (TYPE) | SSFHASH | 'SHA1' | SSF Hash Algorithm | 20110708 | ||
| 10 | Instance attribute | Private | Type reference (TYPE) | STRUSTSMIM | 20110801 | ||||
| 11 | Instance attribute | Private | Type reference (TYPE) | SSFFORM | SSF format | 20110708 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 13 | Instance attribute | Private | Type reference (TYPE) | SMIMELOGICALNAME | Logical name for a S/MIME identity | 20120806 | |||
| 14 | Instance attribute | Protected | Type reference (TYPE) | SSFPROF | SSF profile name | 20110801 | |||
| 15 | Instance attribute | Private | Type reference (TYPE) | SSFTOOLKIT | SSF: Selection of security product | 20110708 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Returns a S/MIME instance | 20110708 | |
| 2 | Instance method | Public | Method | Decrypts the given data | 20110708 | |
| 3 | Instance method | Public | Method | Encrypts the given data | 20110708 | |
| 4 | Instance method | Private | Method | Determine encryption algorithm | 20110802 | |
| 5 | Instance method | Private | Method | Build PSE Name | 20110927 | |
| 6 | Instance method | Private | Method | Determine signature hash algorithm | 20110802 | |
| 7 | Instance method | Protected | Method | Initializes the S/MIME instance | 20110708 | |
| 8 | Instance method | Private | Method | Parse email address from certificate | 20110708 | |
| 9 | Instance method | Private | Method | Read information of the last error | 20110708 | |
| 10 | Instance method | Private | Method | Read profile | 20110802 | |
| 11 | Instance method | Public | Method | Signs the given data | 20110708 | |
| 12 | Instance method | Public | Method | Verifies the given data | 20110708 |
Events
Class CL_SMIME has no event.
Types
Class CL_SMIME has no local type.
Method Signatures
Method CREATE_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_NAME | Call by reference | Type reference (TYPE) | SMIMELOGICALNAME | Logical name for a S/MIME identity | 20110708 | |||
| 2 | RO_SMIME | Value transfer | Object reference (TYPE REF TO) | CL_SMIME | S/MIME - API | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME 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 | SSF Encryption Algrorithm | 20110708 | |||
| 2 | EV_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 3 | EV_KEY_LEN | Call by reference | Type reference (TYPE) | SSFKEYLEN | SSF Key Length | 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_TARGET | Call by reference | Type reference (TYPE) | SMIMENAMECERT_T | Table of X.509 Certificates | 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_CRYPT_ALG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_TARGET | Call by reference | Type reference (TYPE) | SMIMENAMECERT_T | S/MIME Name to Certificate Mapping | 20110802 | |||
| 2 | RV_ALGORITHM | Value transfer | Type reference (TYPE) | SSFENCR | SSF Encryption Algrorithm | 20110802 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME exception | 20110802 |
Method GET_PSE_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RV_PSE_TEXT | Value transfer | Type reference (TYPE) | STRING | 20110927 |
Method GET_PSE_TEXT on class CL_SMIME has no exception.
Method GET_SIGN_ALG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_TARGET | Call by reference | Type reference (TYPE) | SMIMELOGICALNAME_T | S/MIME logical name table | 20110802 | |||
| 2 | RV_ALGORITHM | Value transfer | Type reference (TYPE) | SSFHASH | SSF Hash Algorithm | 20110802 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME exception | 20110802 |
Method INIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_NAME | Call by reference | Type reference (TYPE) | SMIMELOGICALNAME | Logical name for a S/MIME identity | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME cryptographic exception | 20110927 |
Method PARSE_EMAIL_FROM_CERTIFICATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CERTIFICATE | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 2 | RV_EMAIL | Value transfer | Type reference (TYPE) | STRING | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME exception | 20110708 |
Method READ_LAST_ERROR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CRC | Call by reference | Type reference (TYPE) | SSFRETURN | SSF Return code | 20110708 | |||
| 2 | RV_LAST_ERROR | Value transfer | Type reference (TYPE) | STRING | 20110708 |
Method READ_LAST_ERROR on class CL_SMIME has no exception.
Method READ_PROFILE Signature
Method READ_PROFILE on class CL_SMIME has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME exception | 20110802 | ||
| 2 | S/MIME cryptographic exception | 20120806 |
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_TARGET | Call by reference | Type reference (TYPE) | SMIMELOGICALNAME_T | S/MIME logical name table | 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 | S/MIME exception | 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 | SSF Hash Algorithm | 20110708 | |||
| 3 | IS_SOURCE | Call by reference | Type reference (TYPE) | SMIMENAMECERT | S/MIME Name to Certificate Mapping | 20110708 | |||
| 4 | IV_DETACHED_DATA | Call by reference | Type reference (TYPE) | XSTRING | 20110708 | ||||
| 5 | IV_SIGNATURE | Call by reference | Type reference (TYPE) | XSTRING | 20110708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | S/MIME exception | 20110708 | ||
| 2 | S/MIME exception | 20110708 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 740 |