g-Eclipse
Release 1.0.0

eu.geclipse.core.auth
Class CoreAuthTokenProvider

java.lang.Object
  extended by eu.geclipse.core.auth.AbstractAuthTokenProvider
      extended by eu.geclipse.core.auth.CoreAuthTokenProvider
All Implemented Interfaces:
IAuthTokenProvider

public class CoreAuthTokenProvider
extends AbstractAuthTokenProvider

Core implementation of the IAuthTokenProvider interface to give a core extension for the authentication management extension point.


Constructor Summary
CoreAuthTokenProvider()
           
 
Method Summary
 IAuthenticationToken requestToken()
          Request any authentication token.
 IAuthenticationToken requestToken(AuthTokenRequest request)
          Request an authentication token of the specified type.
 
Methods inherited from class eu.geclipse.core.auth.AbstractAuthTokenProvider
isTokenRequestCanceledException, staticRequestToken, staticRequestToken
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreAuthTokenProvider

public CoreAuthTokenProvider()
Method Detail

requestToken

public IAuthenticationToken requestToken()
Description copied from interface: IAuthTokenProvider
Request any authentication token. The requested token can have any type. This is a shortcut for requestToken( null ).

Returns:
Any token that could be found. In fact the currently defined default token is returned.

requestToken

public IAuthenticationToken requestToken(AuthTokenRequest request)
Description copied from interface: IAuthTokenProvider
Request an authentication token of the specified type. If the default token is not of the specified type but an appropriate token could be found this token will be set to be the new default token.

Parameters:
request - A token request that is used to determine the type of the token that is requested.
Returns:
A token that matches the specified token description.

g-Eclipse
Release 1.0.0