public class ScpCfDestination extends AbstractDestination
Destination
on SAP Cloud Platform Cloud Foundry.ScpCfGenericDestination
,
ScpCfRfcDestination
authenticationType, basicCredentials, isTrustingAllCertificates, keyStoreLocation, keyStorePassword, proxyConfiguration, proxyType, trustStoreLocation, trustStorePassword, uri
Constructor and Description |
---|
ScpCfDestination(com.google.gson.JsonObject destinationAsJson,
com.sap.cloud.sdk.cloudplatform.connectivity.XsuaaService xsuaaService,
com.sap.cloud.sdk.cloudplatform.connectivity.DestinationService destinationService,
com.sap.cloud.sdk.cloudplatform.connectivity.ConnectivityService connectivityService,
String name,
String description,
String uri,
AuthenticationType authenticationType,
BasicCredentials basicCredentials,
ProxyType proxyType,
ProxyConfiguration proxyConfiguration,
boolean isTrustingAllCertificates,
String trustStoreLocation,
String trustStorePassword,
String keyStoreLocation,
String keyStorePassword,
String cloudConnectorLocationId,
Map<String,String> propertiesByName)
Creates a destination to be used on SAP Cloud Platform Cloud Foundry.
|
ScpCfDestination(com.google.gson.JsonObject destinationAsJson,
com.sap.cloud.sdk.cloudplatform.connectivity.XsuaaService xsuaaService,
com.sap.cloud.sdk.cloudplatform.connectivity.DestinationService destinationService,
com.sap.cloud.sdk.cloudplatform.connectivity.ConnectivityService connectivityService,
String name,
String description,
URI uri,
AuthenticationType authenticationType,
BasicCredentials basicCredentials,
ProxyType proxyType,
ProxyConfiguration proxyConfiguration,
boolean isTrustingAllCertificates,
String trustStoreLocation,
String trustStorePassword,
String keyStoreLocation,
String keyStorePassword,
String cloudConnectorLocationId,
Map<String,String> propertiesByName)
Creates a destination to be used on SAP Cloud Platform Cloud Foundry.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getCloudConnectorLocationId()
Getter for the location identifier used by the SAP Cloud Connector.
|
List<Header> |
getHeaders(URI requestUri) |
Optional<KeyStore> |
getKeyStore() |
Optional<ProxyConfiguration> |
getProxyConfiguration() |
Optional<KeyStore> |
getTrustStore() |
getAuthenticationType, getBasicCredentials, getDefaultHeaders, getKeyStorePassword, getProxyType, getTrustStorePassword, getUri, isTrustingAllCertificates
canEqual, equals, getDescription, getDestinationType, getName, getPropertiesByName, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getDestinationType, getName, getPropertiesByName
public ScpCfDestination(@Nullable com.google.gson.JsonObject destinationAsJson, @Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.XsuaaService xsuaaService, @Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.DestinationService destinationService, @Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.ConnectivityService connectivityService, @Nonnull String name, @Nullable String description, @Nonnull URI uri, @Nonnull AuthenticationType authenticationType, @Nullable BasicCredentials basicCredentials, @Nonnull ProxyType proxyType, @Nullable ProxyConfiguration proxyConfiguration, boolean isTrustingAllCertificates, @Nullable String trustStoreLocation, @Nullable String trustStorePassword, @Nullable String keyStoreLocation, @Nullable String keyStorePassword, @Nullable String cloudConnectorLocationId, @Nonnull Map<String,String> propertiesByName)
destinationAsJson
- The actual JSON object returned by the destination service.xsuaaService
- The XSUAA service to be used to retrieve further destination information such as headers for
on-premise connections.destinationService
- The destinations service to be used to retrieve further destination information.connectivityService
- The connectivity service to be used to retrieve further destination information regarding on-premise
connections.name
- The name of the destination.description
- A description of this destination.uri
- The uri of this destination.authenticationType
- The AuthenticationType
of this destination.basicCredentials
- The credentials to be used if authenticationType
is set to BASIC_AUTHENTICATION
.proxyType
- The type of proxy to be used for this destination.proxyConfiguration
- The configuration of the proxy to be used (if given).isTrustingAllCertificates
- Flag indicating whether all certificates should be accepted when communicating with the destination.trustStoreLocation
- The name of the trust store to search for in the certificates obtained by the destination service.trustStorePassword
- The password to access the trust store.keyStoreLocation
- The name of the key store to search for in the certificates obtained by the destination service.keyStorePassword
- The password to access the key store.cloudConnectorLocationId
- The id to be used when communicating in ON_PREMISE
proxyType
with an on-premise
system.propertiesByName
- A map containing all additional properties.public ScpCfDestination(@Nullable com.google.gson.JsonObject destinationAsJson, @Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.XsuaaService xsuaaService, @Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.DestinationService destinationService, @Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.ConnectivityService connectivityService, @Nonnull String name, @Nullable String description, @Nonnull String uri, @Nonnull AuthenticationType authenticationType, @Nullable BasicCredentials basicCredentials, @Nonnull ProxyType proxyType, @Nullable ProxyConfiguration proxyConfiguration, boolean isTrustingAllCertificates, @Nullable String trustStoreLocation, @Nullable String trustStorePassword, @Nullable String keyStoreLocation, @Nullable String keyStorePassword, @Nullable String cloudConnectorLocationId, @Nonnull Map<String,String> propertiesByName)
destinationAsJson
- The actual JSON object returned by the destination service.xsuaaService
- The XSUAA service to be used to retrieve further destination information such as headers for
on-premise connections.destinationService
- The destinations service to be used to retrieve further destination information.connectivityService
- The connectivity service to be used to retrieve further destination information regarding on-premise
connections.name
- The name of the destination.description
- A description of this destination.uri
- The uri of this destination.authenticationType
- The AuthenticationType
of this destination.basicCredentials
- The credentials to be used if authenticationType
is set to BASIC_AUTHENTICATION
.proxyType
- The type of proxy to be used for this destination.proxyConfiguration
- The configuration of the proxy to be used (if given).isTrustingAllCertificates
- Flag indicating whether all certificates should be accepted when communicating with the destination.trustStoreLocation
- The name of the trust store to search for in the certificates obtained by the destination service.trustStorePassword
- The password to access the trust store.keyStoreLocation
- The name of the key store to search for in the certificates obtained by the destination service.keyStorePassword
- The password to access the key store.cloudConnectorLocationId
- The id to be used when communicating in ON_PREMISE
proxyType
with an on-premise
system.propertiesByName
- A map containing all additional properties.@Nonnull public Optional<KeyStore> getTrustStore() throws DestinationAccessException
DestinationAccessException
- If there is an issue accessing the trust store.@Nonnull public Optional<KeyStore> getKeyStore() throws DestinationAccessException
DestinationAccessException
- If there is an issue accessing the key store.@Nonnull public Optional<String> getCloudConnectorLocationId()
@Nonnull public Optional<ProxyConfiguration> getProxyConfiguration() throws DestinationAccessException
AbstractDestination
getProxyConfiguration
in interface Destination
getProxyConfiguration
in class AbstractDestination
ProxyConfiguration
of the destination.DestinationAccessException
- If there is an issue accessing the ProxyConfiguration
.@Nonnull public List<Header> getHeaders(@Nullable URI requestUri) throws DestinationAccessException
AbstractDestination
getHeaders
in interface Destination
getHeaders
in class AbstractDestination
requestUri
- The URI to get the associated Header for.Header
s to be used with the destination and given request URI
.DestinationAccessException
- If there is an issue accessing the request headers.Copyright © 2019 SAP SE. All rights reserved.