Package com.sap.cloud.security.xsuaa
Class XsuaaServicePropertySourceFactory
java.lang.Object
com.sap.cloud.security.xsuaa.XsuaaServicePropertySourceFactory
- All Implemented Interfaces:
org.springframework.core.io.support.PropertySourceFactory
public class XsuaaServicePropertySourceFactory
extends Object
implements org.springframework.core.io.support.PropertySourceFactory
Part of Auto Configuration
XsuaaAutoConfiguration
Example Usage
declared on a class:
@Configuration
@PropertySource(factory = XsuaaServicePropertySourceFactory.class, value = { "" })
declared on attribute:
@Value("${xsuaa.url:}")
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.core.env.PropertySourcecreate(String name, Properties properties) Creates a PropertySource object for a map of xsuaa properties.org.springframework.core.env.PropertySource<?>createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource)
-
Field Details
-
XSUAA_PREFIX
- See Also:
-
CLIENT_ID
- See Also:
-
CLIENT_SECRET
- See Also:
-
URL
- See Also:
-
UAA_DOMAIN
- See Also:
-
-
Constructor Details
-
XsuaaServicePropertySourceFactory
public XsuaaServicePropertySourceFactory()
-
-
Method Details
-
createPropertySource
public org.springframework.core.env.PropertySource<?> createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource) throws IOException - Specified by:
createPropertySourcein interfaceorg.springframework.core.io.support.PropertySourceFactory- Throws:
IOException
-
create
public static org.springframework.core.env.PropertySource create(String name, Properties properties) Creates a PropertySource object for a map of xsuaa properties.- Parameters:
name- of the propertySource. Use only "xsuaa" as name in case you like to overwrite/set all properties.properties- map of xsuaa properties- Returns:
- created @Code{PropertySource}
-