@ThreadRestricted(value="wicket") public final class WP_OpenIDLogin extends LoginPage
The constructer accepts a request cycle runner as an argument, to handle any post-login processing. The runner will be called exactly once if authentication terminates, either successfully or by cancellation. Typically, the runner is coded to set a response page for the user.
COOKIE_PERSIST_BUTTON
CACHE_DURATION_YEAR
SHORT_STRING_LENGTH_MAX
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
INTERFACE
Constructor and Description |
---|
WP_OpenIDLogin(PageParameters pP)
Constructs a WP_OpenIDLogin that redirects to a newly constructed, bookmarkable,
return page if authentication succeeds.
|
WP_OpenIDLogin(WP_OpenIDLogin previousLoginPage,
String previousFailureString)
Constructs a WP_OpenIDLogin that continues from a previous, failed authentication
attempt.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearPersistence(String userEmail,
VRequestCycle cycle)
Clears any cookie-persisted authentication.
|
(package private) boolean |
isPersistent()
Answers whether a successful authentication is to be persisted in client cookies.
|
(package private) boolean |
isReauthenticationRequested()
Answers whether the user is requesting reauthentication of his/her email address.
|
(package private) DiscoveryInformation |
openIDDiscoveryInformation()
The results of discovery on the user's OpenID, if any.
|
(package private) static void |
persistPersistButton(boolean state,
WebResponse resW)
Persists the state of the "keep me logged in" button in a cookie.
|
void |
renderHead(IHeaderResponse r) |
(package private) RequestCycleRunner |
requestCycleRunner()
The runner to do any post-login processing, such as redirecting back to the
original referring page.
|
(package private) static void |
setUserInSession(String email,
String _method,
boolean _persistent,
VRequestCycle _cycle)
Sets the newly authenticated user in the session without replacing it.
|
respondWithReturnPage, setUserInSession
appendStyleClass, getCacheDuration, getPageIcon, inputLengthConstrained, invalidStyled, isCacheable, newLabelNBSP, newNullComponentAsLabel, newPagingNavigator, setCacheable, setCacheDuration, setHeaders, setPageIcon
emailAddressValidator, inputLengthValidator, newBodyOnlyFragment, newNullComponent, shortened, shortenedWords, stringNonEmpty, stringRequired, vApplication, vRequestCycle
configureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl
componentChanged, componentRendered, detachModels, dirty, endComponentRender, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, internalPrepareForRender, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onDetach, onRedirect, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, startComponentRender, toString, wasCreatedBookmarkable, wasRendered
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFeedbackMessages, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canCallListenerInterface, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath
detach
public WP_OpenIDLogin(PageParameters pP)
WP_OpenIDLogin(WP_OpenIDLogin previousLoginPage, String previousFailureString)
previousLoginPage
- the login page of the previous, failed
authentication attempt.previousFailureString
- a message to present to the user relating the
failure of the previous authentication attempt.public static void clearPersistence(String userEmail, VRequestCycle cycle)
boolean isPersistent()
VSession.User.isPersistent()
boolean isReauthenticationRequested()
DiscoveryInformation openIDDiscoveryInformation()
static void persistPersistButton(boolean state, WebResponse resW)
LoginPage.COOKIE_PERSIST_BUTTON
RequestCycleRunner requestCycleRunner()
static void setUserInSession(String email, String _method, boolean _persistent, VRequestCycle _cycle)
_method
- the name of the authentication method for logging purposes.isPersistent()
public void renderHead(IHeaderResponse r)
renderHead
in interface IHeaderContributor
renderHead
in class VPageHTML