public interface PrincipalHolder
Principal
instances. As a user logs in, an empty
context is created which must later be primed by the SecuritySystem
in order to be operational.BasicSecuritySystem
Modifier and Type | Method and Description |
---|---|
Principal |
getLast()
Get the last, i.e. currently active, principal.
|
void |
login(BasicEventContext bec)
Allow logging in directly with an event context.
|
void |
login(Principal principal)
Add a new principal context to the stack.
|
int |
logout()
Pop the last created principal context and return the number of active
contexts remaining.
|
int |
size()
Get the number of active principal contexts.
|
int size()
Principal getLast()
void login(Principal principal)
principal
- the principal to addvoid login(BasicEventContext bec)
bec
- the event context to useint logout()
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.