Class PermissionsGenerator
- java.lang.Object
-
- de.xima.fc.security.pac4j.authorization.generator.PermissionsGenerator
-
- All Implemented Interfaces:
org.pac4j.core.authorization.generator.AuthorizationGenerator
public class PermissionsGenerator extends Object implements org.pac4j.core.authorization.generator.AuthorizationGenerator
Generates the roles and permissions for the profile.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH, Dresden
-
-
Field Summary
Fields Modifier and Type Field Description static PermissionsGenerator
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.pac4j.core.profile.UserProfile>
generate(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.UserProfile pac4jProfile)
static void
initPermissions(org.pac4j.core.profile.UserProfile profile)
-
-
-
Field Detail
-
INSTANCE
public static final PermissionsGenerator INSTANCE
-
-
Method Detail
-
initPermissions
public static void initPermissions(org.pac4j.core.profile.UserProfile profile)
-
generate
public Optional<org.pac4j.core.profile.UserProfile> generate(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.UserProfile pac4jProfile)
- Specified by:
generate
in interfaceorg.pac4j.core.authorization.generator.AuthorizationGenerator
-
-