@ThreadSafe public final class OpenIDAuthenticator extends Authenticator implements ISessionListener
Modifier and Type | Field and Description |
---|---|
(package private) static String |
COOKIE_PERSIST_KEY
The name of the cookie that stores the login key of the user if login is
cookie-persisted for that user.
|
(package private) static String |
COOKIE_PERSIST_USER_EMAIL
The name of the cookie that stores the email address of the user if login is
cookie-persisted for that user.
|
PRELOGIN_EMAIL
Constructor and Description |
---|
OpenIDAuthenticator(VOWicket _app)
Creates an OpenIDAuthenticator.
|
Modifier and Type | Method and Description |
---|---|
(package private) ConsumerManager |
consumerManager()
The OpenID consumer manager.
|
Class<? extends VPageHTML> |
loginPageClass()
The class of login page for this authenticator.
|
void |
logOut()
Ensures that the user is logged out.
|
VPageHTML |
newLoginPage(PageParameters _pP)
Constructs a login page that redirects to a newly constructed, bookmarkable,
return page if authentication succeeds.
|
(package private) static Cookie |
newPersistCookie(String name,
String value,
boolean toEncode,
Request req)
Constructs a login persistence cookie.
|
(package private) String |
newPersistKey(String userEmail,
String ipAddress)
Calculates a secure hash of the user's login fingerprint and returns it as a
string in radix 36.
|
void |
onCreated(Session s) |
(package private) SecureRandom |
secureRandomizer()
The secure random number generator.
|
extractReturnClass
static final String COOKIE_PERSIST_KEY
static final String COOKIE_PERSIST_USER_EMAIL
public OpenIDAuthenticator(VOWicket _app)
@ThreadRestricted(value="holds OpenIDAuthenticator.this") ConsumerManager consumerManager()
static Cookie newPersistCookie(String name, String value, boolean toEncode, Request req)
String newPersistKey(String userEmail, String ipAddress)
ipAddress
- the IP address of the client or proxy.@ThreadRestricted(value="holds OpenIDAuthenticator.this") SecureRandom secureRandomizer()
public Class<? extends VPageHTML> loginPageClass()
Authenticator
loginPageClass
in class Authenticator
public void logOut()
Authenticator
logOut
in class Authenticator
public VPageHTML newLoginPage(PageParameters _pP)
Authenticator
newLoginPage
in class Authenticator
_pP
- The type and parameters of the return page to construct after the
login attempt. Parameter "returnClass" specifies the page type, while the
remainder of pP is passed to the page instance.public void onCreated(Session s)
onCreated
in interface ISessionListener