@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 String |
DEFAULT_COOKIEPATH
Default Cookie Path.
|
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() |
void |
setBase64Encode(boolean base64Encode)
Default value (true).
|
void |
setCookieMaxAge(TemporalAmount cookieMaxAge) |
void |
setCookieName(String cookieName)
Default value ("SESSION").
|
void |
setCookiePath(String cookiePath) |
void |
setDomainName(String domainName) |
void |
setHeaderNames(String[] headerNames)
Default values (["Authorization-Info", "X-Auth-Token"]).
|
void |
setPrefix(String prefix) |
void |
setRememberMe(boolean rememberMe)
Default value (false).
|
getMaxActiveSessions, getMaxInactiveInterval, setMaxActiveSessions, setMaxInactiveInterval
public static final String DEFAULT_COOKIEPATH
public static final String DEFAULT_COOKIENAME
public static final boolean DEFAULT_REMEMBERME
public static final boolean DEFAULT_BASE64ENCODE
public boolean isBase64Encode()
public void setBase64Encode(boolean base64Encode)
base64Encode
- Enable the Base64 encode for sessions IDs sent back to clientspublic String getCookieName()
public void setCookieName(String cookieName)
cookieName
- Set the cookie name to usepublic Optional<String> getPrefix()
public void setPrefix(String prefix)
prefix
- Set the prefix to use when serializing session IDpublic String[] getHeaderNames()
public void setHeaderNames(String[] headerNames)
headerNames
- Set the header names when using a Header strategypublic void setCookiePath(String cookiePath)
cookiePath
- Set the cookie path to use. Default value ("/").public Optional<String> getDomainName()
public void setDomainName(String domainName)
domainName
- Set the domain name to use for the cookiepublic Optional<TemporalAmount> getCookieMaxAge()
public void setCookieMaxAge(TemporalAmount cookieMaxAge)
cookieMaxAge
- Set the max age to use for the cookiepublic boolean isRememberMe()
public void setRememberMe(boolean rememberMe)
rememberMe
- Enable the remember me setting