Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation
Class LoginStack

java.lang.Object
  extended by org.nuxeo.ecm.automation.LoginStack

public class LoginStack
extends java.lang.Object

Author:
Bogdan Stefanescu

Nested Class Summary
static class LoginStack.Entry
           
 
Constructor Summary
LoginStack(CoreSession session)
           
 
Method Summary
 CoreSession getSession()
          Get the current session
 LoginStack.Entry peek()
           
 void pop()
          Remove the current login context from the stack.
 void push(javax.security.auth.login.LoginContext lc)
           
 void setSession(CoreSession session)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginStack

public LoginStack(CoreSession session)
Method Detail

setSession

public void setSession(CoreSession session)

getSession

public CoreSession getSession()
Get the current session

Returns:

push

public void push(javax.security.auth.login.LoginContext lc)
          throws OperationException
Throws:
OperationException

peek

public LoginStack.Entry peek()

pop

public void pop()
         throws OperationException
Remove the current login context from the stack.

If no login context in in the stack nothing is done. If the login context has an associated CoreSession the session will be destroyed and the previous session is restored as the active session of the operation context.

Throws:
OperationException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.