Remembers a Subject's identity by saving the Subject's {@link Subject#getPrincipals() principals} to a {@link Cookie}for later retrieval.
Cookie attributes (path, domain, maxAge, etc) may be set on this class's default {@link #getCookie() cookie} attribute, which acts as a template to use to set all properties of outgoing cookiescreated by this implementation.
The default cookie has the following attribute values set:
Attribute Name | Value |
{@link Cookie#getName() name} | {@code rememberMe} |
{@link Cookie#getPath() path} | {@code /} |
{@link Cookie#getMaxAge() maxAge} | {@link Cookie#ONE_YEAR Cookie.ONE_YEAR} |
Note that because this class subclasses the {@link AbstractRememberMeManager} which already provides serializationand encryption logic, this class utilizes both for added security before setting the cookie value.
@author The Apache Shiro Project (shiro-dev@incubator.apache.org)
@since 1.0