@Configuration
@ConditionalOnProperty(value="spring.cloud.dataflow.security.authentication.file.enabled")
@ConfigurationProperties(prefix="spring.cloud.dataflow.security.authentication.file")
public class FileAuthenticationConfiguration
extends org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_PROPERTIES_PREFIX |
| Constructor and Description |
|---|
FileAuthenticationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getUsers() |
void |
init(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
Initializes the
AuthenticationManagerBuilder. |
void |
setUsers(Properties users)
Set users as
Properties. |
public static final String CONFIGURATION_PROPERTIES_PREFIX
public Properties getUsers()
public void setUsers(Properties users)
Properties. Value (String) of the property must be in the
format e.g.: bobspassword, ROLE_NAME.users - the property object with user password and rolespublic void init(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
throws Exception
AuthenticationManagerBuilder. Creates an
InMemoryUserDetailsManager with the provided
getUsers().
getUsers() must contain at least 1 user.init in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder>init in class org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapterIllegalArgumentException - if
getUsers() is empty.ExceptionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.