Class AuthConfig
java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.security.auth.AuthConfig
- All Implemented Interfaces:
JExpressConfig
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Nested Class Summary
Nested classes/interfaces inherited from class org.summerboot.jexpress.boot.config.BootConfig
BootConfig.ThreadingMode -
Field Summary
FieldsFields inherited from class org.summerboot.jexpress.boot.config.BootConfig
BR, cfgFile, configName, CPU_CORE, DESC_KMF, DESC_PLAINPWD, DESC_TMF, FILENAME_KEYSTORE, FILENAME_TRUSTSTORE_4CLIENT, FILENAME_TRUSTSTORE_4SERVER, generateTemplate, logger, props -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeclareRoles(Set<String> scanedDeclareRoles) protected voidcalled by @ConfigHeader.callbackMethodName4Dump valueprotected voidprotected voidprotected voidio.jsonwebtoken.JwtParserintgetKmf()intgetRoles()getTmf()booleanisTypeAD()protected voidloadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) static voidvoidsetPasswordAlgorithm(String passwordAlgorithm) voidshutdown()temp()Methods inherited from class org.summerboot.jexpress.boot.config.BootConfig
buildThreadPoolExecutor, createIfNotExist, generateTemplate, getCfgFile, getProperties, info, instance, load, loadField, name, preLoad, updateConfigFile, updateFilePath
-
Field Details
-
cfg
-
-
Constructor Details
-
AuthConfig
protected AuthConfig()
-
-
Method Details
-
main
-
temp
- Specified by:
tempin interfaceJExpressConfig- Overrides:
tempin classBootConfig- Returns:
- null - disable reload
-
shutdown
public void shutdown() -
generateTemplate_privateKeyFile
-
generateTemplate_privateKeyPwd
-
generateTemplate_publicKeyFile
-
generateTemplate_DumpRoleMapping
called by @ConfigHeader.callbackMethodName4Dump value- Parameters:
sb-
-
loadCustomizedConfigs
protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) throws IOException, org.bouncycastle.operator.OperatorCreationException, GeneralSecurityException - Specified by:
loadCustomizedConfigsin classBootConfig- Throws:
IOExceptionorg.bouncycastle.operator.OperatorCreationExceptionGeneralSecurityException
-
getLdapHost
-
getLdapPort
public int getLdapPort() -
getLdapBaseDN
-
getBindingUserDN
-
getLdapScheamTenantGroupOU
-
getPasswordAlgorithm
-
setPasswordAlgorithm
-
getLdapSSLConnectionFactoryClassName
-
getLdapTLSProtocol
-
isTypeAD
public boolean isTypeAD() -
getLdapConfig
-
getJwtSigningKey
-
getJwtParser
public io.jsonwebtoken.JwtParser getJwtParser() -
getJwtIssuer
-
getJwtTTLMinutes
public int getJwtTTLMinutes() -
getRole
-
getRoles
-
getBindingPassword
-
getKmf
-
getTmf
-
getPrivateKeyFile
-
getPrivateKeyPwd
-
getPublicKeyFile
-
getSymmetricKey
-
addDeclareRoles
-
getDeclareRoles
-