public class DestinationServiceLocator extends Object
Constructor and Description |
---|
DestinationServiceLocator() |
Modifier and Type | Method and Description |
---|---|
static DestinationService |
getInstance()
This method returns the default instance of the destination service.
|
static DestinationService |
getPrivilegedInstance()
This method returns the privileged instance of the destination service.
|
static void |
setDestinationServiceLocatorImpl(com.sap.security.core.server.destinations.api.DestinationServiceLocatorI locatorImpl)
This method sets the DestinationServiceLocatorImpl.
|
public static DestinationService getPrivilegedInstance() throws DestinationException
privilegedInstanceAccessComponentList
specified in DestinationServiceAuthorization
.
The privileged instance has full access to the destination service, to
the destination factories and destinations, including the
security-sensitive destination properties like passwords.
Due to the absence of authorization checks, destination access is faster
than for the default instance. However, the code-based check in this
method is expensive, therefore a component should not call this method
for every access to the destination service but keep the reference to the
privileged instance, once it has been obtained.DestinationException
- Is thrown if the default instance has not been properly
initialized or if the calling entity has not the code-based
rights to gain access to the privileged instance.public static DestinationService getInstance() throws DestinationException
Context ctx = new InitialContext();
DestinationService dstService = (DestinationService) ctx.lookup(DestinationService.JNDI_KEY);
The default instance restricts access to the internal security-sensitive
destination data (e.g. passwords) to selected components contained in a
second whitelist securityPropertyAccessComponentList
specified in DestinationServiceAuthorization
.
Additionaly, store, update and delete actions on the destination service
API are protected via UME actions.DestinationException
- Is thrown if the default instance has not been properly
initialized.public static void setDestinationServiceLocatorImpl(com.sap.security.core.server.destinations.api.DestinationServiceLocatorI locatorImpl)
DestinationServiceFrame
locatorImpl
- destination service instanceAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/security/destinations/api
|
api
|
BC-JAS-SEC
|
[sap.com] J2EE-FRMW
|
[sap.com]
|
-
|
BC-JAS-SEC
|
[sap.com] J2EE-FRMW
|
[sap.com]
|
default
|
BC-JAS-SEC
|
Copyright 2018 SAP AG Complete Copyright Notice