g-Eclipse
Release 1.0.0

eu.geclipse.ui.views
Class AuthTokenView

java.lang.Object
  extended by ViewPart
      extended by eu.geclipse.ui.views.AuthTokenView
All Implemented Interfaces:
ISecurityManagerListener

public class AuthTokenView
extends ViewPart
implements ISecurityManagerListener

The AuthTokenView is the central point in the g-Eclipse UI to manage authentication tokens. It provides UI elements to create new and to destroy old authentication tokens. Users can also activate or deactivate their tokens. Therefore the AuthTokenView can be seen as graphical frontend of the AuthenticationTokenManager.


Nested Class Summary
static class AuthTokenView.AuthenticationTokenContentProvider
          This internal class is used to present the currently available authentication tokens in a structured way to the user.
static class AuthTokenView.AuthenticationTokenLabelProvider
          This internal class is used to present the currently available authentication tokens in a structured way to the user.
 
Constructor Summary
AuthTokenView()
           
 
Method Summary
 void contentChanged(ISecurityManager manager)
          If registered as listener to a security manager this method is called by the manager whenever its content changes.
 void createPartControl(Composite parent)
           
 void dispose()
           
 IAuthenticationToken getSelectedToken()
          Get the currently selected token.
 java.util.List<IAuthenticationToken> getSelectedTokens()
          Get a list of all currently selected tokens.
 void setFocus()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthTokenView

public AuthTokenView()
Method Detail

createPartControl

public void createPartControl(Composite parent)

dispose

public void dispose()

contentChanged

public void contentChanged(ISecurityManager manager)
Description copied from interface: ISecurityManagerListener
If registered as listener to a security manager this method is called by the manager whenever its content changes.

Specified by:
contentChanged in interface ISecurityManagerListener
Parameters:
manager - The manager that issued the change.

setFocus

public void setFocus()

getSelectedToken

public IAuthenticationToken getSelectedToken()
Get the currently selected token. If there are more tokens selected get the first token in the list of selected tokens.

Returns:
The first token in the list of selected tokens.

getSelectedTokens

public java.util.List<IAuthenticationToken> getSelectedTokens()
Get a list of all currently selected tokens.

Returns:
A list containing all currently selected tokens.

g-Eclipse
Release 1.0.0