|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.auth.openid.OpenIDConstants
public final class OpenIDConstants
The OpenIDConstants
class defines useful constants for
implementors of login forms for OpenID authentication.
Field Summary | |
---|---|
static String |
OPENID_AUTH
Identification of this authentication handler. |
static String |
OPENID_FAILURE_REASON
The name of the request parameter set by the requestCredentials method when redirecting to the login
request form. |
static String |
OPENID_IDENTITY
The name of the request parameter set by the requestCredentials method providing to authenticated OpenID
identity. |
Constructor Summary | |
---|---|
OpenIDConstants()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPENID_AUTH
AuthenticationInfo
object returned from the extractCredentials
method.
To explicitly request OpenID authentication handling, this should be used
as the value of the sling:authRequestLogin
request
parameter.
public static final String OPENID_FAILURE_REASON
requestCredentials
method when redirecting to the login
request form. The value of the parameter is the name of one of the
OpenIDFailure
constants.
This parameter is intended to be used by the login form to provide information to the client as to why OpenID authentication has failed. For example a login form implemented as a JSP may use the parameter to write the message like this:
<% String reason = request.getParameter(OPENID_FAILURE_REASON_ATTRIBUTE); OpenIDFailure fReason = OpenIDFailure.valueOf(reason); %> <div id="err"> <p><%= fReason %></p> </div>
public static final String OPENID_IDENTITY
requestCredentials
method providing to authenticated OpenID
identity. This parameter is only set if the
OPENID_FAILURE_REASON
is OpenIDFailure.REPOSITORY
and
can be used to offer the user assistence with associating an existing JCR
user with the OpenID identity.
Constructor Detail |
---|
public OpenIDConstants()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |