eTextReader.authentication
Enum Authenticator.AUTHENTICATION_RESULT

java.lang.Object
  extended by java.lang.Enum<Authenticator.AUTHENTICATION_RESULT>
      extended by eTextReader.authentication.Authenticator.AUTHENTICATION_RESULT
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Authenticator.AUTHENTICATION_RESULT>
Enclosing interface:
Authenticator

public static enum Authenticator.AUTHENTICATION_RESULT
extends java.lang.Enum<Authenticator.AUTHENTICATION_RESULT>

This enum provides the set of possible return values for the authenticate and updateSecret methods.

Author:
mcfall

Enum Constant Summary
FAILED
           
INVALID_SECRET
           
NO_SUCH_IDENTITY
           
OPERATIONAL_ERROR
           
OTHER_ERROR
           
SUCCESS
           
 
Method Summary
static Authenticator.AUTHENTICATION_RESULT valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Authenticator.AUTHENTICATION_RESULT[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_SUCH_IDENTITY

public static final Authenticator.AUTHENTICATION_RESULT NO_SUCH_IDENTITY

INVALID_SECRET

public static final Authenticator.AUTHENTICATION_RESULT INVALID_SECRET

SUCCESS

public static final Authenticator.AUTHENTICATION_RESULT SUCCESS

FAILED

public static final Authenticator.AUTHENTICATION_RESULT FAILED

OTHER_ERROR

public static final Authenticator.AUTHENTICATION_RESULT OTHER_ERROR

OPERATIONAL_ERROR

public static final Authenticator.AUTHENTICATION_RESULT OPERATIONAL_ERROR
Method Detail

values

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

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

valueOf

public static Authenticator.AUTHENTICATION_RESULT valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name