@Beta public class ScpXfDestination extends AbstractDestination
Destination
used in context of the ExtensionFactory on SAP Cloud Platform Cloud
Foundry.
You can let the SAP Cloud SDK read this type of destinations automatically from VCAP_SERVICES
environment
variable (written to by the ExtensionFactory) by providing the ScpXfDestinationFacade
to the
DestinationAccessor
.
In case you want to retrieve destinations from both, the regular destination service as well as the ExtensionFactory,
you can consider using the FallbackDestinationFacade
.
authenticationType, basicCredentials, isTrustingAllCertificates, keyStoreLocation, keyStorePassword, proxyConfiguration, proxyType, trustStoreLocation, trustStorePassword, uri
Constructor and Description |
---|
ScpXfDestination(String name,
String description,
String uri,
AuthenticationType authenticationType,
BasicCredentials basicCredentials)
Creates a new
ScpXfDestination based on information obtainable in the VCAP_SERVICES environment variable. |
Modifier and Type | Method and Description |
---|---|
Optional<KeyStore> |
getKeyStore() |
Optional<KeyStore> |
getTrustStore() |
String |
toString() |
getAuthenticationType, getBasicCredentials, getDefaultHeaders, getHeaders, getKeyStorePassword, getProxyConfiguration, getProxyType, getTrustStorePassword, getUri, isTrustingAllCertificates
canEqual, equals, getDescription, getDestinationType, getName, getPropertiesByName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getDestinationType, getName, getPropertiesByName
public ScpXfDestination(@Nonnull String name, @Nullable String description, @Nonnull String uri, @Nonnull AuthenticationType authenticationType, @Nullable BasicCredentials basicCredentials)
ScpXfDestination
based on information obtainable in the VCAP_SERVICES environment variable.name
- The name of the destination.description
- The description of the destination. Usually the plan in the ExtensionFactory case.uri
- The URI this destination points to.authenticationType
- The AuthenticationType
of this destination. Usually
AuthenticationType.BASIC_AUTHENTICATION
in the ExtensionFactory case.basicCredentials
- The basic credentials to be used in the communication with the system.@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.public String toString()
AbstractGenericDestination
toString
in class AbstractGenericDestination
Copyright © 2019 SAP SE. All rights reserved.