@ConfigurationProperties(value="http") public class HttpSessionConfiguration extends SessionConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_BASE64ENCODE
The default base64 encode value.
|
static String |
DEFAULT_COOKIENAME
Cookie name.
|
static boolean |
DEFAULT_REMEMBERME
The default remember me value.
|
DEFAULT_MAXINACTIVEINTERVAL_SECONDS
Constructor and Description |
---|
HttpSessionConfiguration() |
Modifier and Type | Method and Description |
---|---|
Optional<TemporalAmount> |
getCookieMaxAge() |
String |
getCookieName() |
Optional<String> |
getCookiePath() |
Optional<String> |
getDomainName() |
String[] |
getHeaderNames() |
Optional<String> |
getPrefix() |
boolean |
isBase64Encode() |
boolean |
isRememberMe() |
protected void |
setBase64Encode(boolean base64Encode)
Default value (true).
|
protected void |
setCookieMaxAge(TemporalAmount cookieMaxAge) |
protected void |
setCookieName(String cookieName)
Default value ("SESSION").
|
protected void |
setCookiePath(String cookiePath) |
protected void |
setDomainName(String domainName) |
protected void |
setHeaderNames(String[] headerNames)
Default values (["Authorization-Info", "X-Auth-Token"]).
|
protected void |
setPrefix(String prefix) |
protected void |
setRememberMe(boolean rememberMe)
Default value (false).
|
getMaxActiveSessions, getMaxInactiveInterval, setMaxActiveSessions, setMaxInactiveInterval
public static final String DEFAULT_COOKIENAME
public static final boolean DEFAULT_REMEMBERME
public static final boolean DEFAULT_BASE64ENCODE
public boolean isBase64Encode()
protected void setBase64Encode(boolean base64Encode)
base64Encode
- Enable the Base64 encode for sessions IDs sent back to clientspublic String getCookieName()
protected void setCookieName(String cookieName)
cookieName
- Set the cookie name to usepublic Optional<String> getPrefix()
protected void setPrefix(String prefix)
prefix
- Set the prefix to use when serializing session IDpublic String[] getHeaderNames()
protected void setHeaderNames(String[] headerNames)
headerNames
- Set the header names when using a Header strategyprotected void setCookiePath(String cookiePath)
cookiePath
- Set the cookie path to usepublic Optional<String> getDomainName()
protected void setDomainName(String domainName)
domainName
- Set the domain name to use for the cookiepublic Optional<TemporalAmount> getCookieMaxAge()
protected void setCookieMaxAge(TemporalAmount cookieMaxAge)
cookieMaxAge
- Set the max age to use for the cookiepublic boolean isRememberMe()
protected void setRememberMe(boolean rememberMe)
rememberMe
- Enable the remember me setting