public interface SecurityApi extends KillbillApi
| Modifier and Type | Method and Description |
|---|---|
void |
checkCurrentUserPermissions(List<Permission> permissions,
Logical logical,
TenantContext context)
Check the current user has the set of permissions.
|
Set<Permission> |
getCurrentUserPermissions(TenantContext context)
Return the set of permissions for the currently logged-in user.
|
void |
login(Object principal,
Object credentials)
Perform a login attempt.
|
void |
logout()
Log out the current user and invalidate and/or remove any associated entities (e.g.
|
void login(Object principal, Object credentials)
principal - account identity (e.g. username)credentials - account credentials (e.g. password)void logout()
Set<Permission> getCurrentUserPermissions(TenantContext context)
context - tenant contextvoid checkCurrentUserPermissions(List<Permission> permissions, Logical logical, TenantContext context) throws SecurityApiException
permissions - set of permissions to checklogical - rule to use for multiple permissionscontext - tenant contextSecurityExceptionSecurityApiExceptionCopyright © 2010-2015. All Rights Reserved.