Package | Description |
---|---|
com.sap.cloud.sdk.cloudplatform.connectivity | |
com.sap.cloud.sdk.cloudplatform.security | |
com.sap.cloud.sdk.testutil |
Modifier and Type | Method and Description |
---|---|
Optional<Credentials> |
ProxyConfiguration.getCredentials()
Getter for the credentials, wrapped in an
Optional , as it may be null. |
Modifier and Type | Method and Description |
---|---|
static ProxyConfiguration |
ProxyConfiguration.of(String uri,
Credentials credentials)
Static factory to create a configuration based on an URI (as a String) and credentials.
|
static ProxyConfiguration |
ProxyConfiguration.of(URI uri,
Credentials credentials)
Static factory to create a configuration based on an URI and credentials.
|
Constructor and Description |
---|
ProxyConfiguration(URI uri,
Credentials credentials)
Creates a configuration based on the given URI and credentials.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicCredentials
Simple credential implementation based on a username and password.
|
class |
BearerCredentials
Simple credential implementation based on a single token.
|
class |
NoCredentials
Empty implementation of the
Credentials interface to be used for a user having no credentials. |
Modifier and Type | Method and Description |
---|---|
Credentials |
MockRfcDestination.getCredentials() |
Credentials |
MockErpDestination.getCredentials() |
Credentials |
MockUtil.getCredentials(String systemAlias)
Returns the credentials for the given alias.
|
Credentials |
MockUtil.getCredentials(TestSystem<?> testSystem) |
Modifier and Type | Method and Description |
---|---|
void |
MockUtil.addCredentials(String systemAlias,
Credentials credentials)
Registers the given
Credentials to enable retrieval by its alias. |
MockRfcDestination.MockRfcDestinationBuilder |
MockRfcDestination.MockRfcDestinationBuilder.credentials(Credentials credentials) |
MockErpDestination.MockErpDestinationBuilder |
MockErpDestination.MockErpDestinationBuilder.credentials(Credentials credentials) |
Destination |
MockUtil.mockDestination(String name,
URI uri,
Credentials credentials)
Mocks a destination with a given name to redirect to the given
URI with the given Credentials . |
Destination |
MockUtil.mockDestination(String name,
URI uri,
Credentials credentials,
ProxyConfiguration proxyConfiguration)
Mocks a destination with a given name to redirect to the given
URI with the given Credentials . |
Destination |
MockUtil.mockErpDestination(ErpSystem erpSystem,
Credentials credentials)
Mocks an ERP
Destination for the given ErpSystem and Credentials for destination name
"ErpQueryEndpoint". |
Destination |
MockUtil.mockErpDestination(String destinationName,
ErpSystem erpSystem,
Credentials credentials)
|
Destination |
MockUtil.mockErpDestination(String destinationName,
ErpSystem erpSystem,
Credentials credentials,
AuthenticationType authenticationType,
ProxyType proxyType,
ProxyConfiguration proxyConfiguration,
List<Header> headers,
KeyStore trustStore,
String trustStorePassword,
Boolean isTrustingAllCertificates,
KeyStore keyStore,
String keyStorePassword,
Map<String,String> propertiesByName)
Mocks an ERP
Destination for the given parameters. |
RfcDestination |
MockUtil.mockRfcDestination(ErpSystem erpSystem,
Credentials credentials)
Mocks an
RfcDestination for the given ErpSystem and Credentials for destination name
"ErpQueryEndpoint". |
RfcDestination |
MockUtil.mockRfcDestination(String destinationName,
ErpSystem erpSystem,
Credentials credentials)
|
RfcDestination |
MockUtil.mockRfcDestination(String destinationName,
ErpSystem erpSystem,
Credentials credentials,
Map<String,String> propertiesByName)
Mocks an
RfcDestination for the given parameters. |
void |
MockRfcDestination.setCredentials(Credentials credentials) |
void |
MockErpDestination.setCredentials(Credentials credentials) |
Copyright © 2018 SAP SE. All rights reserved.