|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAuthenticationToken
This interface is the base of the authentication/authorisation mechanisms within g-Eclipse. It defines methods for activating and for validating authentication tokens. An authentication token has an inner state. It can be active or inactive. An active token is ready to be used for authentication/authorisation. An inactive token holds the values (files, CA locations) that are needed to activate this token.
| Method Summary | |
|---|---|
IAuthenticationTokenDescription |
getDescription()
Get the authentication token description that was used to create this token. |
java.lang.String |
getID()
Get an ID that is used to identify this authentication token. |
long |
getTimeLeft()
Get the remaining lifetime of this token or -1 if the token will never expire or is inactive. |
IPath |
getTokenFile()
Get the path to the file that contains the token. |
boolean |
isActive()
Get the current state of this token, i.e. if this token is either active or inactive. |
boolean |
isValid()
Returns if this token is currently valid. |
void |
setActive(boolean active)
Either activates or deactivates this token. |
void |
setActive(boolean active,
IProgressMonitor progress)
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. |
void |
validate(IProgressMonitor progress)
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. |
| Method Detail |
|---|
void setActive(boolean active)
throws AuthenticationException
setActive(boolean, IProgressMonitor) method instead.
active - If true the token will be activated, otherwise it will be deactivated.
AuthenticationException - If an error occurs while activating this token.setActive(boolean, IProgressMonitor)
void setActive(boolean active,
IProgressMonitor progress)
throws AuthenticationException
active - If true the token will be activated, otherwise it will be deactivated.progress - A progress monitor to show the progress of the activation procedure.
Normally this is not used when deactivating the token. If the activation procedure is
not time critical use setActive(boolean) instead.
AuthenticationException - If an error occurs while activating this token.setActive(boolean)
void validate()
throws AuthenticationException
AuthenticationException - If an error occurs while validating this token.validate(IProgressMonitor)
void validate(IProgressMonitor progress)
throws AuthenticationException
progress - A progress monitor to show the progress of the validation procedure.
Normally this is not used when deactivating the token. If the activation procedure is
not time critical use validate() instead.
AuthenticationException - If an error occurs while validating this token.validate()boolean isActive()
boolean isValid()
validate().
IAuthenticationTokenDescription getDescription()
long getTimeLeft()
java.lang.String getID()
validate()IPath getTokenFile()
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||