org.opentox.toxotis.util.aa
Enum AuthenticationToken.TokenStatus

java.lang.Object
  extended by java.lang.Enum<AuthenticationToken.TokenStatus>
      extended by org.opentox.toxotis.util.aa.AuthenticationToken.TokenStatus
All Implemented Interfaces:
Serializable, Comparable<AuthenticationToken.TokenStatus>
Enclosing class:
AuthenticationToken

public static enum AuthenticationToken.TokenStatus
extends Enum<AuthenticationToken.TokenStatus>

Status of the token.


Enum Constant Summary
ACTIVE
          The token is still active and can be used in an A&A session.
DEAD
          The token is not yet initialized or is in a state that should noway be used for authentication/authorization.
INACTIVE
          The token has either expired or it has been invalidated (the user has logged out).
 
Method Summary
static AuthenticationToken.TokenStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AuthenticationToken.TokenStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACTIVE

public static final AuthenticationToken.TokenStatus ACTIVE
The token is still active and can be used in an A&A session. However it is advisable to use the method AuthenticationToken.validate() to validate the token against the SSO server prior to its use.


INACTIVE

public static final AuthenticationToken.TokenStatus INACTIVE
The token has either expired or it has been invalidated (the user has logged out).


DEAD

public static final AuthenticationToken.TokenStatus DEAD
The token is not yet initialized or is in a state that should noway be used for authentication/authorization.

Method Detail

values

public static AuthenticationToken.TokenStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AuthenticationToken.TokenStatus c : AuthenticationToken.TokenStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AuthenticationToken.TokenStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011-2012 OpenTox. All Rights Reserved.