Package org.pac4j.play.deadbolt2
Class Pac4jSubject
- java.lang.Object
-
- org.pac4j.play.deadbolt2.Pac4jSubject
-
- All Implemented Interfaces:
be.objectify.deadbolt.java.models.Subject
public class Pac4jSubject extends Object implements be.objectify.deadbolt.java.models.Subject
The deadbolt subject built from the pac4j user profile.- Since:
- 2.6.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description Pac4jSubject(org.pac4j.core.profile.UserProfile profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIdentifier()
List<? extends be.objectify.deadbolt.java.models.Permission>
getPermissions()
List<? extends be.objectify.deadbolt.java.models.Role>
getRoles()
-
-
-
Method Detail
-
getRoles
public List<? extends be.objectify.deadbolt.java.models.Role> getRoles()
- Specified by:
getRoles
in interfacebe.objectify.deadbolt.java.models.Subject
-
getPermissions
public List<? extends be.objectify.deadbolt.java.models.Permission> getPermissions()
- Specified by:
getPermissions
in interfacebe.objectify.deadbolt.java.models.Subject
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifier
in interfacebe.objectify.deadbolt.java.models.Subject
-
-