Class BytedeskProperties
java.lang.Object
com.bytedesk.core.config.properties.BytedeskProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static enum
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BytedeskProperties.Admin
private BytedeskProperties.Aliyun
private BytedeskProperties.Cache
private BytedeskProperties.Cluster
static final String
private BytedeskProperties.Cors
private BytedeskProperties.Custom
private Boolean
private static final String
private BytedeskProperties.Features
private static BytedeskProperties
private BytedeskProperties.Jwt
private BytedeskProperties.Kbase
private String
private BytedeskProperties.Member
private BytedeskProperties.Minio
private BytedeskProperties.Organization
private BytedeskProperties.Tencent
private BytedeskProperties.Testing
private BytedeskProperties.Upload
private String
private BytedeskProperties.WechatPay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
encryptString
(String plainText) AES加密字符串int
getEmail()
static BytedeskProperties
获取加密后的licenseKey获取原始licenseKey(仅用于内部使用)private String
handleChineseText
(String text, String envKey) 处理可能包含中文的文本void
init()
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
-
BytedeskProperties
public BytedeskProperties()
-
-
Method Details
-
init
@PostConstruct public void init() -
encryptString
AES加密字符串- 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
-
getClusterPort
public int getClusterPort() -
getKbaseTheme
-
getKbaseHtmlPath
-
getKbaseApiUrl
-
getMinioEnabled
-
getMinioEndpoint
-
getMinioAccessKey
-
getMinioSecretKey
-
getMinioBucketName
-
getMinioRegion
-
getMinioSecure
-
isDisableIpFilter
public boolean isDisableIpFilter()检查是否禁用IP过滤- Returns:
- 如果禁用IP过滤,返回true;否则返回false
-
isDisableCaptcha
public boolean isDisableCaptcha()检查是否禁用验证码- Returns:
- 如果禁用验证码,返回true;否则返回false
-
isSuperUser
-
isInWhitelist
-
getLicenseKey
获取加密后的licenseKey- Returns:
- 加密后的licenseKey字符串
-
getOriginalAppkey
获取原始licenseKey(仅用于内部使用)- Returns:
- 原始licenseKey字符串
-