Class SpringSecurityPropertiesAuthorizationGenerator

  • All Implemented Interfaces:
    AuthorizationGenerator

    public class SpringSecurityPropertiesAuthorizationGenerator
    extends java.lang.Object
    implements AuthorizationGenerator
    Authorization generator based on a properties file in Spring security format: username=password,grantedAuthority[,grantedAuthority][,enabled|disabled]
    Since:
    1.8.1
    Author:
    Jerome Leleu
    • Constructor Detail

      • SpringSecurityPropertiesAuthorizationGenerator

        public SpringSecurityPropertiesAuthorizationGenerator​(java.util.Properties properties)
    • Method Detail

      • generate

        public java.util.Optional<UserProfile> generate​(WebContext context,
                                                        SessionStore sessionStore,
                                                        UserProfile profile)
        Description copied from interface: AuthorizationGenerator
        Generate the authorization information from and for the user profile.
        Specified by:
        generate in interface AuthorizationGenerator
        Parameters:
        context - the web context
        sessionStore - the session store
        profile - the user profile for which to generate the authorization information.
        Returns:
        the updated profile or a new one (optional)