Class BytedeskProperties
java.lang.Object
com.bytedesk.core.config.properties.BytedeskProperties
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic enumstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate BytedeskProperties.Adminprivate BytedeskProperties.Aliyunprivate BytedeskProperties.Cacheprivate BytedeskProperties.Clusterstatic final Stringprivate BytedeskProperties.Corsprivate BytedeskProperties.Customprivate Booleanprivate static final Stringprivate BytedeskProperties.Featuresprivate static BytedeskPropertiesprivate BytedeskProperties.Jwtprivate BytedeskProperties.Kbaseprivate Stringprivate BytedeskProperties.Memberprivate BytedeskProperties.Minioprivate BytedeskProperties.Organizationprivate BytedeskProperties.Tencentprivate BytedeskProperties.Testingprivate BytedeskProperties.Uploadprivate Stringprivate BytedeskProperties.WechatPay
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringencryptString(String plainText) AES加密字符串intgetEmail()static BytedeskProperties获取加密后的licenseKey获取原始licenseKey(仅用于内部使用)private StringhandleChineseText(String text, String envKey) 处理可能包含中文的文本voidinit()boolean检查是否禁用验证码boolean检查是否禁用IP过滤isInWhitelist(String user) isSuperUser(String user) 
- 
Field Details- 
CONFIG_PREFIX- See Also:
 
- 
ENCRYPTION_KEY- See Also:
 
- 
instance
- 
debug
- 
version
- 
licenseKey
- 
custom
- 
admin
- 
member
- 
testing
- 
organization
- 
features
- 
cors
- 
jwt
- 
cache
- 
upload
- 
cluster
- 
kbase
- 
aliyun
- 
tencent
- 
minio
- 
wechatPay
 
- 
- 
Constructor Details- 
BytedeskPropertiespublic BytedeskProperties()
 
- 
- 
Method Details- 
init@PostConstruct public void init()
- 
encryptStringAES加密字符串- Parameters:
- plainText- 明文
- Returns:
- 加密后的Base64字符串
 
- 
handleChineseText处理可能包含中文的文本- Parameters:
- text- 原始文本
- envKey- 对应的环境变量key
- Returns:
- 处理后的文本
 
- 
getInstance
- 
getEmail
- 
getPassword
- 
getMemberDefaultPassword
- 
getNickname
- 
getMobile
- 
getMobileWhitelist
- 
getEmailWhitelist
- 
getValidateCode
- 
getOrganizationName
- 
getOrganizationCode
- 
getJavaAi
- 
getEmailType
- 
getAvatarBaseUrl
- 
getCorsAllowedOrigins
- 
getJwtSecretKey
- 
getJwtExpiration
- 
getJwtRefreshTokenExpiration
- 
getCacheLevel
- 
getCachePrefix
- 
getRedisStreamKey
- 
getUploadType
- 
getUploadDir
- 
getUploadUrl
- 
getClusterEnabled
- 
getClusterNodes
- 
getClusterHost
- 
getClusterPortpublic int getClusterPort()
- 
getKbaseTheme
- 
getKbaseHtmlPath
- 
getKbaseApiUrl
- 
getMinioEnabled
- 
getMinioEndpoint
- 
getMinioAccessKey
- 
getMinioSecretKey
- 
getMinioBucketName
- 
getMinioRegion
- 
getMinioSecure
- 
isDisableIpFilterpublic boolean isDisableIpFilter()检查是否禁用IP过滤- Returns:
- 如果禁用IP过滤,返回true;否则返回false
 
- 
isDisableCaptchapublic boolean isDisableCaptcha()检查是否禁用验证码- Returns:
- 如果禁用验证码,返回true;否则返回false
 
- 
isSuperUser
- 
isInWhitelist
- 
getLicenseKey获取加密后的licenseKey- Returns:
- 加密后的licenseKey字符串
 
- 
getOriginalAppkey获取原始licenseKey(仅用于内部使用)- Returns:
- 原始licenseKey字符串
 
 
-