All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.security.test.api.ServiceMockConfiguration Maven / Gradle / Ivy

There is a newer version: 3.5.4
Show newest version
/**
 * SPDX-FileCopyrightText: 2018-2023 SAP SE or an SAP affiliate company and Cloud Security Client Java contributors
 * 

* SPDX-License-Identifier: Apache-2.0 */ package com.sap.cloud.security.test.api; public interface ServiceMockConfiguration { /** * Overwrites the port on which the identity service mock server runs (WireMock). It needs to be configured before * the test execution has started. If the port is not specified or is set to 0, a free random port is chosen. * * @param port * the port on which the wire mock service is started. * @return the rule itself. */ ServiceMockConfiguration setPort(int port); /** * Overwrites the private/public key pair to be used. The private key is used to sign the jwt token. The public key * is provided by jwks endpoint (on behalf of WireMock). Checked exceptions are caught and rethrown as runtime * exceptions for test convenience. * * @param publicKeyPath * resource path to public key file. * @param privateKeyPath * resource path to private key file. * @return the rule itself. */ ServiceMockConfiguration setKeys(String publicKeyPath, String privateKeyPath); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy