Interface PrincipalManager

All Known Subinterfaces:
PrincipalManagerService
All Known Implementing Classes:
PrincipalManagerImpl

public interface PrincipalManager
Interface to the principal store.
  • Method Details

    • getAnonymousPrincipal

      Principal getAnonymousPrincipal()
    • getPrincipal

      Principal getPrincipal(String name, boolean withRoles)
      Returns the principal from the underlying store. The withRoles argument specifies whether the principal's roles should also be loaded.
    • getRole

      Role getRole(String name)
    • getAllRoles

      Set<Role> getAllRoles()
    • getRolesFor

      Set<Role> getRolesFor(String principal)
    • updateTwoFactorData

      void updateTwoFactorData(String username, String secret)