com.sap.cloud.security.ams.spring.test.autoconfig.TestPolicyDecisionPointAutoConfiguration Maven / Gradle / Ivy
/************************************************************************
* © 2019-2023 SAP SE or an SAP affiliate company. All rights reserved. *
************************************************************************/
package com.sap.cloud.security.ams.spring.test.autoconfig;
import com.sap.cloud.security.ams.dcl.client.pdp.PolicyDecisionPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import static com.sap.cloud.security.ams.factory.TestServerPolicyDecisionPointFactory.DEFAULT;
@Configuration
public class TestPolicyDecisionPointAutoConfiguration {
private final Logger logger = LoggerFactory.getLogger(getClass());
@Bean
@Primary
public PolicyDecisionPoint testPolicyDecisionPoint() {
logger.debug("auto-configures PolicyDecisionPoint for (local) testing with DCL runtime.");
return PolicyDecisionPoint.create(DEFAULT);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy