public interface CosmoSecurityManager
CosmoSecurityContext| Modifier and Type | Method and Description |
|---|---|
void |
checkPermission(Item item,
int permission)
Validates that the current security context has the requested
permission for the given item.
|
CosmoSecurityContext |
getSecurityContext()
Provides a
CosmoSecurityContext representing a
previously authenticated principal. |
CosmoSecurityContext |
initiateSecurityContext(String username,
String password)
Authenticates the given Cosmo credentials and registers a
CosmoSecurityContext for them. |
CosmoSecurityContext |
initiateSecurityContext(User user)
Initiate the current security context with the current user.
|
void |
registerTickets(Set<Ticket> tickets)
Associate additional tickets with the current security context.
|
void |
unregisterTickets() |
CosmoSecurityContext getSecurityContext() throws CosmoSecurityException
CosmoSecurityContext representing a
previously authenticated principal.CosmoSecurityExceptionCosmoSecurityContext initiateSecurityContext(String username, String password) throws CosmoSecurityException
CosmoSecurityContext for them. This method is used
when Cosmo components need to programatically log in a user
rather than relying on a security context already being in
place.CosmoSecurityExceptionCosmoSecurityContext initiateSecurityContext(User user) throws CosmoSecurityException
CosmoSecurityExceptionvoid checkPermission(Item item, int permission) throws PermissionDeniedException
PermissionDeniedException - if the security context does
not have the required permissionvoid registerTickets(Set<Ticket> tickets)
tickets - additional tickets to associate with the current
security contextvoid unregisterTickets()
Copyright © 2012–2018 1&1. All rights reserved.