org.jboss.seam.security
@Name(value="org.jboss.seam.security.rememberMe") @Scope(value=SESSION) @Install(precedence=0, classDependencies="javax.faces.context.FacesContext") @BypassInterceptors public class RememberMe extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RememberMe.Mode |
Constructor and Description |
---|
RememberMe() |
Modifier and Type | Method and Description |
---|---|
void |
create() |
void |
credentialsUpdated() |
protected String |
encodeToken(String username,
String value) |
protected String |
generateTokenValue() |
int |
getCookieMaxAge() |
String |
getCookiePath() |
RememberMe.Mode |
getMode() |
TokenStore |
getTokenStore() |
void |
initCredentials(Credentials credentials) |
boolean |
isAutoLoggedIn()
A flag that an application can use to protect sensitive operations if the user has been
auto-authenticated.
|
boolean |
isEnabled() |
void |
loggedOut() |
void |
postAuthenticate(Identity identity) |
void |
quietLogin() |
void |
setCookieMaxAge(int cookieMaxAge) |
void |
setEnabled(boolean enabled) |
void |
setMode(RememberMe.Mode mode) |
void |
setTokenStore(TokenStore tokenStore) |
public RememberMe.Mode getMode()
public void setMode(RememberMe.Mode mode)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public int getCookieMaxAge()
public void setCookieMaxAge(int cookieMaxAge)
public TokenStore getTokenStore()
public void setTokenStore(TokenStore tokenStore)
@Create public void create()
protected String generateTokenValue()
public String getCookiePath()
@Observer(value="org.jboss.seam.security.initCredentials") public void initCredentials(Credentials credentials)
@Observer(value="org.jboss.seam.security.postAuthenticate") public void postAuthenticate(Identity identity)
@Observer(value="org.jboss.seam.security.credentialsUpdated") public void credentialsUpdated()
public boolean isAutoLoggedIn()
Copyright © 2015 Seam Framework. All Rights Reserved.