Class Pac4jAccount

java.lang.Object
org.pac4j.undertow.account.Pac4jAccount
All Implemented Interfaces:
io.undertow.security.idm.Account, Serializable

public class Pac4jAccount extends Object implements io.undertow.security.idm.Account
Specific account for Undertow based on the pac4j profile.
Since:
1.1.0
Author:
Jerome Leleu
See Also:
  • Constructor Details

    • Pac4jAccount

      public Pac4jAccount(LinkedHashMap<String,org.pac4j.core.profile.UserProfile> profiles)
  • Method Details

    • getRoles

      public Set<String> getRoles()
      Specified by:
      getRoles in interface io.undertow.security.idm.Account
    • getPrincipal

      public Principal getPrincipal()
      Specified by:
      getPrincipal in interface io.undertow.security.idm.Account
    • getProfile

      public org.pac4j.core.profile.UserProfile getProfile()
      Get the main profile of the authenticated user.
      Returns:
      the main profile
    • getProfiles

      public List<org.pac4j.core.profile.UserProfile> getProfiles()
      Get all the profiles of the authenticated user.
      Returns:
      the list of profiles