|
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.AbstractAuthenticationToken
public abstract class AbstractAuthenticationToken
Abstract implementation of the IAuthenticationToken interface.
| Constructor Summary | |
|---|---|
AbstractAuthenticationToken(IAuthenticationTokenDescription description)
Construct a new AbstractAuthenticationToken from the
specified IAuthenticationTokenDescription. |
|
| Method Summary | |
|---|---|
IAuthenticationTokenDescription |
getDescription()
Get the authentication token description that was used to create this token. |
IPath |
getTokenFile()
Get the path to the file that contains the token. |
static IPath |
getTokenLocation()
Get the location in the file system where tokens are saved. |
void |
setActive(boolean active)
Either activates or deactivates this token. |
void |
validate()
Tries to validate this token, i.e. reads the underlying files or tries to connect to specified authentication authorities in order to verify the settings that are needed to use/activate this token. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.geclipse.core.auth.IAuthenticationToken |
|---|
getID, getTimeLeft, isActive, isValid, setActive, validate |
| Constructor Detail |
|---|
public AbstractAuthenticationToken(IAuthenticationTokenDescription description)
AbstractAuthenticationToken from the
specified IAuthenticationTokenDescription.
description - The IAuthenticationTokenDescription from which
this token should be created.| Method Detail |
|---|
public static IPath getTokenLocation()
public IAuthenticationTokenDescription getDescription()
IAuthenticationToken
getDescription in interface IAuthenticationToken
public void setActive(boolean active)
throws AuthenticationException
IAuthenticationTokenIAuthenticationToken.setActive(boolean, IProgressMonitor) method instead.
setActive in interface IAuthenticationTokenactive - If true the token will be activated, otherwise it will be deactivated.
AuthenticationException - If an error occurs while activating this token.IAuthenticationToken.setActive(boolean, IProgressMonitor)
public void validate()
throws AuthenticationException
IAuthenticationToken
validate in interface IAuthenticationTokenAuthenticationException - If an error occurs while validating this token.IAuthenticationToken.validate(IProgressMonitor)public IPath getTokenFile()
IAuthenticationToken
getTokenFile in interface IAuthenticationToken
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||