Package io.hawt.springboot.security
Class SpringSecurityJAASConfiguration
java.lang.Object
javax.security.auth.login.Configuration
io.hawt.springboot.security.SpringSecurityJAASConfiguration
JAAS Configuration that integrates with Spring Security. It includes two
login modules with particular responsibilities:
- Spring Security
SecurityContextLoginModulewhich turns existing (required)org.springframework.security.core.Authenticationobject into JAASPrincipaland sets it as the only principal of JAASSubject - Hawtio
HawtioSpringSecurityLoginModulewhich examines already authenticatedSubjectand extracts granted roles in Spring SecurityAuthenticationand sets them as additional principals of the subject. The role class is taken from first available class ofrolePrincipalClassesHawtio property.
This configuration will only be used if Spring Security is properly configured and
hawtio-springboot-security is available on the classpath.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.security.auth.login.Configuration
Configuration.Parameters -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.security.auth.login.Configuration
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, refresh, setConfiguration
-
Constructor Details
-
SpringSecurityJAASConfiguration
-
-
Method Details
-
getAppConfigurationEntry
- Specified by:
getAppConfigurationEntryin classConfiguration
-