Package ch.tocco.nice2.security.api
Interface PrincipalManager
- All Known Subinterfaces:
PrincipalManagerService
- All Known Implementing Classes:
PrincipalManagerImpl
public interface PrincipalManager
Interface to the principal store.
-
Method Summary
Modifier and TypeMethodDescriptiongetPrincipal
(long key, boolean withRoles) Returns the principal from the underlying store.getPrincipal
(String name, boolean withRoles) Returns the principal from the underlying store.getRolesFor
(String principal) void
updateTwoFactorData
(String username, String secret)
-
Method Details
-
getAnonymousPrincipal
Principal getAnonymousPrincipal() -
getPrincipal
Returns the principal from the underlying store. ThewithRoles
argument specifies whether the principal's roles should also be loaded. -
getPrincipal
Returns the principal from the underlying store. ThewithRoles
argument specifies whether the principal's roles should also be loaded. -
getRole
-
getAllRoles
-
getRolesFor
-
updateTwoFactorData
-