public class TokenValidation extends AbstractModel
header, skipSign
Constructor and Description |
---|
TokenValidation() |
TokenValidation(TokenValidation source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
TokenDisplaySetting |
getDisplaySetting()
Get Token显示设置(只有当校验方式为jws/jwe的时候才会有该配置信息)
|
Boolean |
getEnable()
Get 是否开启token有效性校验
|
TokenVerifyRule |
getVerifyRule()
Get 有效性校验配置和规则
|
String |
getVerifyType()
Get token有效性的校验方式,可选值为:jws、jwe、contains、len、regex
|
void |
setDisplaySetting(TokenDisplaySetting DisplaySetting)
Set Token显示设置(只有当校验方式为jws/jwe的时候才会有该配置信息)
|
void |
setEnable(Boolean Enable)
Set 是否开启token有效性校验
|
void |
setVerifyRule(TokenVerifyRule VerifyRule)
Set 有效性校验配置和规则
|
void |
setVerifyType(String VerifyType)
Set token有效性的校验方式,可选值为:jws、jwe、contains、len、regex
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public TokenValidation()
public TokenValidation(TokenValidation source)
public Boolean getEnable()
public void setEnable(Boolean Enable)
Enable
- 是否开启token有效性校验public String getVerifyType()
public void setVerifyType(String VerifyType)
VerifyType
- token有效性的校验方式,可选值为:jws、jwe、contains、len、regexpublic TokenVerifyRule getVerifyRule()
public void setVerifyRule(TokenVerifyRule VerifyRule)
VerifyRule
- 有效性校验配置和规则public TokenDisplaySetting getDisplaySetting()
public void setDisplaySetting(TokenDisplaySetting DisplaySetting)
DisplaySetting
- Token显示设置(只有当校验方式为jws/jwe的时候才会有该配置信息)Copyright © 2025. All rights reserved.