public class SafeKeeperValueObject extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
String |
device
客户端设备标识
|
Boolean |
isPersistent
是否为持久Cookie
|
Long |
timeout
登录token的有效期,单位:秒
|
| 构造器和说明 |
|---|
SafeKeeperValueObject() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
build(SafeKeeperConfiguration config)
构建模式创建对象
|
static SafeKeeperValueObject |
create()
创建默认的对象
|
int |
getCookieTimeout() |
String |
getDevice() |
Boolean |
getIsPersistent() |
Long |
getTimeout() |
SafeKeeperValueObject |
setDevice(String device) |
SafeKeeperValueObject |
setIsPersistent(Boolean isPersistent) |
SafeKeeperValueObject |
setTimeout(long timeout) |
public String device
public Boolean isPersistent
public Long timeout
public String getDevice()
public SafeKeeperValueObject setDevice(String device)
public Boolean getIsPersistent()
public SafeKeeperValueObject setIsPersistent(Boolean isPersistent)
public Long getTimeout()
public SafeKeeperValueObject setTimeout(long timeout)
public int getCookieTimeout()
public void build(SafeKeeperConfiguration config)
config - 配置public static SafeKeeperValueObject create()
Copyright © 2021. All rights reserved.