|
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.security.BaseSecurityManager
eu.geclipse.core.auth.AuthenticationTokenManager
public class AuthenticationTokenManager
The AuthenticationTokenManager manages all types of authentication tokens.
It holds an internal list of all currently available authentication tokens. Although the
authentication token manager is the base class of the token management system, non-core
classes should use an IAuthTokenProvider to request a token.
| Method Summary | |
|---|---|
IAuthenticationToken |
createToken(IAuthenticationTokenDescription description)
Create a new authentication token from the specified token description and adds it to the list of managed tokens. |
void |
destroyToken(IAuthenticationToken token)
Destroy the specified IAuthenticationToken. |
IAuthenticationToken |
findToken(IAuthenticationTokenDescription description)
Searches for an authentication token that matches the specified description. |
IAuthenticationToken |
getDefaultToken()
Get the currently defined default token. |
static AuthenticationTokenManager |
getManager()
Get the singleton. |
int |
getTokenCount()
Get the number of currently available tokens. |
java.util.List<IAuthenticationToken> |
getTokens()
Get all tokens that are currently available. |
boolean |
isEmpty()
Determine if this token manager's list of managed tokens is currently empty. |
void |
setDefaultToken(IAuthenticationToken token)
Set the specified token to be the default token. |
| Methods inherited from class eu.geclipse.core.security.BaseSecurityManager |
|---|
addListener, fireContentChanged, removeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AuthenticationTokenManager getManager()
AuthenticationTokenManager
that is created and returned by this method.
public IAuthenticationToken createToken(IAuthenticationTokenDescription description)
throws AuthenticationException
description - The description from which to create the new token.
AuthenticationException - If an error occurs while creating the tokenIAuthenticationTokenDescription.createToken()public IAuthenticationToken findToken(IAuthenticationTokenDescription description)
null is returned.
description - The IAuthenticationTokenDescription that describes the token.
public java.util.List<IAuthenticationToken> getTokens()
public void destroyToken(IAuthenticationToken token)
throws AuthenticationException
IAuthenticationToken. This means especially that the
specified token is removed from the list of currently managed tokens. Therefore this
token is not longer accessible from this manager and should not longer be used.
token - The IAuthenticationToken to be destroyed.
AuthenticationExceptionpublic int getTokenCount()
public boolean isEmpty()
public void setDefaultToken(IAuthenticationToken token)
token - The token to be the default token. The default token is only changed if
the specified token is in the list of managed tokens and is not already set as the
default token.getDefaultToken()public IAuthenticationToken getDefaultToken()
setDefaultToken(IAuthenticationToken)
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||