public class ScpNeoDestination extends AbstractDestination
ScpNeoGenericDestination
,
ScpNeoRfcDestination
authenticationType, basicCredentials, isTrustingAllCertificates, keyStoreLocation, keyStorePassword, proxyConfiguration, proxyType, trustStoreLocation, trustStorePassword, uri
Constructor and Description |
---|
ScpNeoDestination(com.sap.core.connectivity.api.configuration.DestinationConfiguration destinationConfiguration,
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 Neo.
|
ScpNeoDestination(com.sap.core.connectivity.api.configuration.DestinationConfiguration destinationConfiguration,
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 Neo.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getCloudConnectorLocationId()
Getter for the location identifier used by the SAP Cloud Connector.
|
com.sap.core.connectivity.api.configuration.DestinationConfiguration |
getDestinationConfiguration() |
List<Header> |
getHeaders(URI requestUri) |
Optional<KeyStore> |
getKeyStore() |
Optional<ProxyConfiguration> |
getProxyConfiguration() |
Optional<KeyStore> |
getTrustStore() |
URI |
getUri() |
getAuthenticationType, getBasicCredentials, getDefaultHeaders, getKeyStorePassword, getProxyType, getTrustStorePassword, isTrustingAllCertificates
canEqual, equals, getDescription, getDestinationType, getName, getPropertiesByName, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getDestinationType, getName, getPropertiesByName
public ScpNeoDestination(@Nullable com.sap.core.connectivity.api.configuration.DestinationConfiguration destinationConfiguration, @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)
destinationConfiguration
- The destination configuration as received by the Neo container.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 destinationConfiguration
.trustStorePassword
- The password to access the trust store.keyStoreLocation
- The name of the key store to search for in the destinationConfiguration
.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 ScpNeoDestination(@Nullable com.sap.core.connectivity.api.configuration.DestinationConfiguration destinationConfiguration, @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)
destinationConfiguration
- The destination configuration as received by the Neo container.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 destinationConfiguration
.trustStorePassword
- The password to access the trust store.keyStoreLocation
- The name of the key store to search for in the destinationConfiguration
.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<String> getCloudConnectorLocationId()
@Nonnull public Optional<KeyStore> getTrustStore()
@Nonnull public Optional<KeyStore> getKeyStore()
@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.@Nonnull public URI getUri() throws DestinationAccessException
getUri
in interface Destination
getUri
in class AbstractDestination
URI
of the destination.DestinationAccessException
@Nullable public com.sap.core.connectivity.api.configuration.DestinationConfiguration getDestinationConfiguration()
Copyright © 2019 SAP SE. All rights reserved.