Class AbstractCookieSettings
- java.lang.Object
-
- org.apache.archiva.redback.policy.AbstractCookieSettings
-
- All Implemented Interfaces:
CookieSettings
- Direct Known Subclasses:
RememberMeCookieSettings,SignonCookieSettings
public abstract class AbstractCookieSettings extends Object implements CookieSettings
Base class for cookie settings. These will only differ by their configuration keys. TODO not sure if having the domain and path in the general configuration is a good idea - this is probably something customised once for all cookies and applications. Should it be in a sharead configuration file, under a sharead key, or perhaps even configured at the application server level? (ie, in Naming).
-
-
Field Summary
Fields Modifier and Type Field Description protected UserConfigurationconfigprotected intcookieTimeoutTimeout (in minutes) for the sign on cookie.protected StringdomainThe domain for the cookie.protected StringpathThe path for the cookie.
-
Constructor Summary
Constructors Constructor Description AbstractCookieSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCookieTimeout()Gets the Cookie timeout (in minutes) for the signon cookie.StringgetDomain()Gets the domain to use for the signon cookie.StringgetPath()Gets the path to use for the signon cookie.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.archiva.redback.policy.CookieSettings
initialize, isEnabled
-
-
-
-
Field Detail
-
config
@Inject @Named("userConfiguration#default") protected UserConfiguration config
-
cookieTimeout
protected int cookieTimeout
Timeout (in minutes) for the sign on cookie.
-
-
Constructor Detail
-
AbstractCookieSettings
public AbstractCookieSettings()
-
-
Method Detail
-
getCookieTimeout
public int getCookieTimeout()
Description copied from interface:CookieSettingsGets the Cookie timeout (in minutes) for the signon cookie.- Specified by:
getCookieTimeoutin interfaceCookieSettings- Returns:
- the timeout in minutes
-
getDomain
public String getDomain()
Description copied from interface:CookieSettingsGets the domain to use for the signon cookie.- Specified by:
getDomainin interfaceCookieSettings- Returns:
- the domain
-
getPath
public String getPath()
Description copied from interface:CookieSettingsGets the path to use for the signon cookie.- Specified by:
getPathin interfaceCookieSettings- Returns:
- the path
-
-