Class SpringSecurityPropertiesAuthorizationGenerator
java.lang.Object
org.pac4j.core.authorization.generator.SpringSecurityPropertiesAuthorizationGenerator
- All Implemented Interfaces:
AuthorizationGenerator
public class SpringSecurityPropertiesAuthorizationGenerator
extends 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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(WebContext context, SessionStore sessionStore, UserProfile profile) Generate the authorization information from and for the user profile.
-
Field Details
-
DISABLED
- See Also:
-
ENABLED
- See Also:
-
-
Constructor Details
-
SpringSecurityPropertiesAuthorizationGenerator
-
-
Method Details
-
generate
public Optional<UserProfile> generate(WebContext context, SessionStore sessionStore, UserProfile profile) Description copied from interface:AuthorizationGeneratorGenerate the authorization information from and for the user profile.- Specified by:
generatein interfaceAuthorizationGenerator- Parameters:
context- the web contextsessionStore- the session storeprofile- the user profile for which to generate the authorization information.- Returns:
- the updated profile or a new one (optional)
-