Start of Content Area

Background documentation Accessing the AS Java Keystore  Locate the document in its SAP Library structure

AS Java provides a keystore for managing keys and certificates.

More information: Using the AS Java Key Storage

Interface Overview

Characteristic

Value

Name

AF KeyStore Management

Purpose

Access to the AS Java Keystore

Type

Java library in the facade com.sap.aii.af.lib.facade

Technical name

com.sap.aii.security.lib

Certification

Optional

Syntax

JavaDoc package com.sap.aii.af.service.resource

      AS Java provides the security.class library, which provides an API that enables you to work with keys and certificates from the keystore.

This library contains tc_sec_ssf.jar, which implements the API.

      If you are using the API, your adapter or module must reference security.class and the enhancement of the Adapter Framework com.sap.aii.security.lib.

You must adapt the deployment descriptors application-j2ee-engine.xml and connector-j2ee-engine.xml accordingly.

      The API has no simple option for accessing the keystore of a JCA adapter or an adapter module. Therefore, the Adapter Framework provides the class SAPSecurityResources, which allows you to open the keystore.

The SAPSecurityResources API is part of the Adapter Framework services; therefore, a reference to com.sap.aii.af.svc.facade is sufficient.

SAPSecurityResources gives you access to the KeyStoreManager classes of the library com.sap.aii.security.lib (display name: SAP XI Security Lib), which is part of com.sap.aii.af.svc.facade.

com.sap.aii.security.lib calls ISsfProfile or ISsfPab of the security.class API.

Note

The example adapter and example module show you how to access a private key, for example, for encryption purposes.

In SPIManagedConnection.java, search for the character string CS_ASECGETCERT. In ConvertCRLFfromToLF.java, search for CS_MSECGETCERT.

 

 

 

End of Content Area