Class SlardarCookieProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = SlardarCookieProp.Key) public class SlardarCookieProp
All the following name settings are the original, that is, without prefix and alias.
- Since:
2021-02-14
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic Stringprefixpublic final static StringKey$prefixpublic Map<String, String>aliaspublic final static StringKey$aliaspublic WingsCookieInterceptor.Codercoderpublic final static StringKey$coderpublic Set<String>noppublic final static StringKey$nooppublic Set<String>b64public final static StringKey$b64public Set<String>aespublic final static StringKey$aespublic Map<Boolean, Set<String>>httpOnlypublic final static StringKey$httpOnlypublic Map<Boolean, Set<String>>securepublic final static StringKey$securepublic Map<String, Set<String>>domainpublic final static StringKey$domainpublic Map<String, Set<String>>pathpublic final static StringKey$path
-
Constructor Summary
Constructors Constructor Description SlardarCookieProp()
-
Method Summary
Modifier and Type Method Description StringgetPrefix()Cookie prefix, empty by default. voidsetPrefix(String prefix)Cookie prefix, empty by default. Map<String, String>getAlias()cookie alias, affected by the prefix, eg. voidsetAlias(Map<String, String> alias)cookie alias, affected by the prefix, eg. WingsCookieInterceptor.CodergetCoder()cookie encoding, default - `aes` - aes256 - `b64` - base64 - `nop` - no encoding For the same config name, the encoding priority `aes` > `b64` > `nop`voidsetCoder(WingsCookieInterceptor.Coder coder)cookie encoding, default - `aes` - aes256 - `b64` - base64 - `nop` - no encoding For the same config name, the encoding priority `aes` > `b64` > `nop`Set<String>getNop()voidsetNop(Set<String> nop)Set<String>getB64()voidsetB64(Set<String> b64)Set<String>getAes()voidsetAes(Set<String> aes)Map<Boolean, Set<String>>getHttpOnly()HttpOnly, js cannot be read, do not process if not set voidsetHttpOnly(Map<Boolean, Set<String>> httpOnly)HttpOnly, js cannot be read, do not process if not set Map<Boolean, Set<String>>getSecure()transfer by https, do not process if not set voidsetSecure(Map<Boolean, Set<String>> secure)transfer by https, do not process if not set Map<String, Set<String>>getDomain()bind domain to cookie, eg. voidsetDomain(Map<String, Set<String>> domain)bind domain to cookie, eg. Map<String, Set<String>>getPath()bind cookie to path, eg. voidsetPath(Map<String, Set<String>> path)bind cookie to path, eg. booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
getAlias
Map<String, String> getAlias()
cookie alias, affected by the prefix, eg. `session`=`o_0`, `session` eventually is `${prefix}o_0`
-
setAlias
void setAlias(Map<String, String> alias)
cookie alias, affected by the prefix, eg. `session`=`o_0`, `session` eventually is `${prefix}o_0`
-
getCoder
WingsCookieInterceptor.Coder getCoder()
cookie encoding, default - `aes` - aes256 - `b64` - base64 - `nop` - no encoding For the same config name, the encoding priority `aes` > `b64` > `nop`
-
setCoder
void setCoder(WingsCookieInterceptor.Coder coder)
cookie encoding, default - `aes` - aes256 - `b64` - base64 - `nop` - no encoding For the same config name, the encoding priority `aes` > `b64` > `nop`
-
getHttpOnly
Map<Boolean, Set<String>> getHttpOnly()
HttpOnly, js cannot be read, do not process if not set
-
setHttpOnly
void setHttpOnly(Map<Boolean, Set<String>> httpOnly)
HttpOnly, js cannot be read, do not process if not set
-
setSecure
void setSecure(Map<Boolean, Set<String>> secure)
transfer by https, do not process if not set
-
getDomain
Map<String, Set<String>> getDomain()
bind domain to cookie, eg. `wings.slardar.cookie.domain[a.com]`=`b,c`, means cookie with `name` of `b` or `c`, its `domain` is `a.com`
-
setDomain
void setDomain(Map<String, Set<String>> domain)
bind domain to cookie, eg. `wings.slardar.cookie.domain[a.com]`=`b,c`, means cookie with `name` of `b` or `c`, its `domain` is `a.com`
-
getPath
Map<String, Set<String>> getPath()
bind cookie to path, eg. `wings.slardar.cookie.path[/admin]`=`b,c`, means cookie with `name` of `b` or `c`, its `path` is `/admin`
-
setPath
void setPath(Map<String, Set<String>> path)
bind cookie to path, eg. `wings.slardar.cookie.path[/admin]`=`b,c`, means cookie with `name` of `b` or `c`, its `path` is `/admin`
-
hashCode
int hashCode()
-
-
-
-