![JAR search and dependency download from the Maven repository](/logo.png)
com.ruijc.shiro.ShiroCookieProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-shiro Show documentation
Show all versions of spring-boot-starter-shiro Show documentation
Springboot自动化配置Shiro框架并加入一些新功能。
The newest version!
package com.ruijc.shiro;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Cookie配置项
*
* @author Storezhang
*/
@ConfigurationProperties(prefix = "shiro.cookie")
public class ShiroCookieProperties {
private String name;
private String value;
private int maxAge;
private int version;
private boolean secure;
private boolean httpOnly;
private String cipherKey;
private String encryptionCipherKey;
private String decryptionCipherKey;
public ShiroCookieProperties() {
maxAge = 60 * 60 * 24 * 365;
version = -1;
name = "rememberMe";
httpOnly = true;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public int getMaxAge() {
return maxAge;
}
public void setMaxAge(int maxAge) {
this.maxAge = maxAge;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public boolean isSecure() {
return secure;
}
public void setSecure(boolean secure) {
this.secure = secure;
}
public boolean isHttpOnly() {
return httpOnly;
}
public void setHttpOnly(boolean httpOnly) {
this.httpOnly = httpOnly;
}
public String getCipherKey() {
return cipherKey;
}
public void setCipherKey(String cipherKey) {
this.cipherKey = cipherKey;
}
public String getEncryptionCipherKey() {
return encryptionCipherKey;
}
public void setEncryptionCipherKey(String encryptionCipherKey) {
this.encryptionCipherKey = encryptionCipherKey;
}
public String getDecryptionCipherKey() {
return decryptionCipherKey;
}
public void setDecryptionCipherKey(String decryptionCipherKey) {
this.decryptionCipherKey = decryptionCipherKey;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy