public enum OpenIDFailure extends Enum<OpenIDFailure>
OpenIDFailure
defines the OpenID authentication failure
codes which may be set as the
j_reason
request
parameter for the login form.
Note that the
request
attribute provides the name of the constant, which can be converted to the
actual constant by calling the j_reason
OpenIDFailure.valueOf(String)
method. Internationalization is not built into the OpenID authentication
handler. Providers of login forms should implement their own mechanism and
may either use the constant name or the message
of the
constant as a key for translation.
Enum Constant and Description |
---|
ASSOCIATION
Indicates failure to associate with the OpenID provider to validate the
identifier.
|
AUTHENTICATION
Indicates failure of the user to authenticate with the OpenID Provider.
|
COMMUNICATION
Indicates a generic communication problem with the OpenID Provider.
|
DISCOVERY
Indicates failure to discover an OpenID Provider for the supplied OpenID
identifier.
|
OTHER
Indicates any other failure during authentication which is not captured
by the other failure reasons.
|
REPOSITORY
Indicates failure to find a matching Repository user for the supplied
OpenID identifier.
|
VERIFICATION
Indicates failure of the verification of the supplied authentication
information with the OpenID Provider.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns the message set when constructing this instance.
|
static OpenIDFailure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenIDFailure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenIDFailure DISCOVERY
public static final OpenIDFailure ASSOCIATION
public static final OpenIDFailure COMMUNICATION
public static final OpenIDFailure AUTHENTICATION
public static final OpenIDFailure VERIFICATION
public static final OpenIDFailure REPOSITORY
public static final OpenIDFailure OTHER
public static OpenIDFailure[] values()
for (OpenIDFailure c : OpenIDFailure.values()) System.out.println(c);
public static OpenIDFailure valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String toString()
name()
method.toString
in class Enum<OpenIDFailure>
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.