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 UserConfiguration
config
protected int
cookieTimeout
Timeout (in minutes) for the sign on cookie.protected String
domain
The domain for the cookie.protected String
path
The path for the cookie.
-
Constructor Summary
Constructors Constructor Description AbstractCookieSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCookieTimeout()
Gets the Cookie timeout (in minutes) for the signon cookie.String
getDomain()
Gets the domain to use for the signon cookie.String
getPath()
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:CookieSettings
Gets the Cookie timeout (in minutes) for the signon cookie.- Specified by:
getCookieTimeout
in interfaceCookieSettings
- Returns:
- the timeout in minutes
-
getDomain
public String getDomain()
Description copied from interface:CookieSettings
Gets the domain to use for the signon cookie.- Specified by:
getDomain
in interfaceCookieSettings
- Returns:
- the domain
-
getPath
public String getPath()
Description copied from interface:CookieSettings
Gets the path to use for the signon cookie.- Specified by:
getPath
in interfaceCookieSettings
- Returns:
- the path
-
-