|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCheatSheetListener
eu.geclipse.ui.UIAuthTokenProvider
public class UIAuthTokenProvider
The UIAuthTokenProvider is the main point where Plugins should request their
authentication tokens. It should be used instead of the AuthenticationTokenManager
whenever possible. It provides methods to request any token or tokens of a special type. It also
takes responsibility for the user interactions with respect to new token wizards, question
dialogs and error dialogs. Therefore it makes the request for a new token very easy.
| Constructor Summary | |
|---|---|
UIAuthTokenProvider()
Standard constructor for the UIAuthTokenProvider. |
|
UIAuthTokenProvider(Shell shell)
Construct a new UIAuthTokenProvider. |
|
| Method Summary | |
|---|---|
void |
cheatSheetEvent(ICheatSheetEvent event)
|
IAuthenticationToken |
requestToken()
Request any authentication token. |
IAuthenticationToken |
requestToken(AuthTokenRequest request)
Request an authentication token that fits the specified description. |
boolean |
showNewTokenWizard(java.lang.String tokenWizardId,
boolean forceWizardId,
IAuthenticationTokenDescription description)
Show the new token wizard. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIAuthTokenProvider()
UIAuthTokenProvider.
public UIAuthTokenProvider(Shell shell)
UIAuthTokenProvider.
shell - The shell that is used to create wizards and dialogs.| Method Detail |
|---|
public IAuthenticationToken requestToken()
throws ProblemException
requestToken(null).
requestToken in interface IAuthTokenProviderProblemException - If the token request was canceled by the user.requestToken(AuthTokenRequest)
public IAuthenticationToken requestToken(AuthTokenRequest request)
throws ProblemException
GridProxy is requested an empty
GridProxyDescription should be passed to this method.
Internally this method queries the AuthenticationTokenManager.
The first step therefore is always to look for the default token. If the
default token is of the specified type it is returned. The second step is
to look for all currently registered tokens. If one of these fits it is
returned. If no token could be found up to here the new token wizard is
launched to create a new token that fits the description. The newly created
token is afterwards added to the token managers managed tokens.
If the found token is not the default token a message box will pop up to ask if the token should be set as default token. If the found token is not valid or not active it is validated and respectively activated. If something wents wrong during this process an error message will pop up.
requestToken in interface IAuthTokenProviderrequest - An AuthTokenRequest that
describes the token that is requested.
ProblemException - If the token request was canceled by the user.
public boolean showNewTokenWizard(java.lang.String tokenWizardId,
boolean forceWizardId,
IAuthenticationTokenDescription description)
tokenWizardId - The ID of the token type that should be created or null.forceWizardId - description - Token description passed to the token specific wizard pages in
order to allow initialisation for a predefined token type.
Window#OK.public void cheatSheetEvent(ICheatSheetEvent event)
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||