|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.core.auth.AbstractAuthTokenProvider
public abstract class AbstractAuthTokenProvider
Abstract implementation of the IAuthTokenProvider
interface that adds some static methods to deal with the extensions of that
interface. The most important methods are therefore the static access methods
for retrieving authentication tokens.
| Constructor Summary | |
|---|---|
AbstractAuthTokenProvider()
|
|
| Method Summary | |
|---|---|
static boolean |
isTokenRequestCanceledException(java.lang.Throwable t)
Checks if the specified Throwable was issued by a token request
cancelation. |
static IAuthenticationToken |
staticRequestToken()
Static access method that calls the corresponding method of the token provider with the highest priority of all currently registered providers. |
static IAuthenticationToken |
staticRequestToken(AuthTokenRequest request)
Static access method that calls the corresponding method of the token provider with the highest priority of all currently registered providers. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.geclipse.core.auth.IAuthTokenProvider |
|---|
requestToken, requestToken |
| Constructor Detail |
|---|
public AbstractAuthTokenProvider()
| Method Detail |
|---|
public static boolean isTokenRequestCanceledException(java.lang.Throwable t)
Throwable was issued by a token request
cancelation.
t - The Throwable to be checked.
True if the specified Throwable is a
ProblemException and the exception's id is equal to
ICoreProblems.AUTH_TOKEN_REQUEST_CANCELED.
public static IAuthenticationToken staticRequestToken()
throws ProblemException
ProblemException - If a problem occured during the token request.
This exception with the ICoreProblems.AUTH_TOKEN_REQUEST_CANCELED
id is especially thrown if the token request was canceled by the user.IAuthTokenProvider.requestToken()
public static IAuthenticationToken staticRequestToken(AuthTokenRequest request)
throws ProblemException
request - Request parameters for the token.
ProblemException - If a problem occured during the token request.
This exception with the ICoreProblems.AUTH_TOKEN_REQUEST_CANCELED
id is especially thrown if the token request was canceled by the user.IAuthTokenProvider.requestToken(AuthTokenRequest)
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||