public class SAPSecurityResources extends Object
Modifier and Type | Field and Description |
---|---|
static Set |
grantedPermissionSet |
Modifier and Type | Method and Description |
---|---|
static SAPSecurityResources |
getInstance()
Return's a SAPSecurityResources.
|
KeyStoreManager |
getKeyStoreManager(PermissionMode permissionMode)
Central class for KeyStore management.
|
KeyStoreManager |
getKeyStoreManager(PermissionMode permissionMode,
String[] aPROTECTION_DOMAIN)
Central class for KeyStore management.
|
String |
toString()
Returns a string representation of this object.
|
public static Set grantedPermissionSet
public static SAPSecurityResources getInstance()
public KeyStoreManager getKeyStoreManager(PermissionMode permissionMode) throws KeyStoreException
KEYSTORE - Mode: Run's the KeyStoreManager with NO additional permission's. This means: The calling code must have code based permissions for the performing actions and the user MUST be assigned to the KeystoreAdministrator role (-- user based permission). DO_PRIVILEGED - Mode: Run's the KeyStoreManager under code based permission for all performing actions. SYSTEM_LEVEL - Mode: Run's the KeyStoreManager under user based permissions. The following java.lang.RuntimePermission is checked: com.sap.aii.security.lib.Constants.SECURITY_RUNTIME_PERMISSION = XiSecurityRuntimePermission. This permission has to be granted as code permissions. This can be done by setting the corresponding Protection Domains array. For an application you get the Protection Domain via the MANIFEST.MF: Example. Implementation-Title = com.sap.aii.adapter.soap.app Implementation-Vendor-Id = sap.com --> Protection Domain = <Implementation-Vendor-Id>/<Implementation-Title> = sap.com/com.sap.aii.adapter.soap.app For an service you don't need to specify the Protection Domain and a library is not allowed to reference a service because of the layering.
permissionMode
- - com.sap.aii.security.lib.PermissionModeKeyStoreException
- In case there's a problem when accessing the key storagepublic KeyStoreManager getKeyStoreManager(PermissionMode permissionMode, String[] aPROTECTION_DOMAIN) throws KeyStoreException
KEYSTORE - Mode: Run's the KeyStoreManager with NO additional permission's. This means: The calling code must have code based permissions for the performing actions and the user MUST be assigned to the KeystoreAdministrator role (-- user based permission). DO_PRIVILEGED - Mode: Run's the KeyStoreManager under code based permission for all performing actions. SYSTEM_LEVEL - Mode: Run's the KeyStoreManager under user based permissions. The following java.lang.RuntimePermission is checked: com.sap.aii.security.lib.Constants.SECURITY_RUNTIME_PERMISSION = XiSecurityRuntimePermission. This permission has to be granted as code permissions. This can be done by setting the corresponding Protection Domains array. For an application you get the Protection Domain via the MANIFEST.MF: Example. Implementation-Title = com.sap.aii.adapter.soap.app Implementation-Vendor-Id = sap.com --> Protection Domain = <Implementation-Vendor-Id>/<Implementation-Title> = sap.com/com.sap.aii.adapter.soap.app For an service you don't need to specify the Protection Domain and a library is not allowed to reference a service because of the layering.
permissionMode
- - com.sap.aii.security.lib.PermissionModeaPROTECTION_DOMAIN
- - String[]KeyStoreException
- In case there's a problem when accessing the key storageAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice