ome.security.basic
Interface PrincipalHolder

All Known Implementing Classes:
CurrentDetails

public interface PrincipalHolder

Stack of active 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.

See Also:
BasicSecuritySystem

Method Summary
 Principal getLast()
          Get the last, i.e. currently active, principal.
 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.
 

Method Detail

size

int size()
Get the number of active principal contexts.


getLast

Principal getLast()
Get the last, i.e. currently active, principal.

Returns:

login

void login(Principal principal)
Add a new principal context to the stack.


logout

int logout()
Pop the last created principal context and return the number of active contexts remaining.



OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.