Class AuthConfig

java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.security.auth.AuthConfig
All Implemented Interfaces:
JExpressConfig

public class AuthConfig extends BootConfig
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

  • Constructor Details

    • AuthConfig

      protected AuthConfig()
  • Method Details

    • main

      public static void main(String[] args)
    • temp

      public AuthConfig temp()
      Specified by:
      temp in interface JExpressConfig
      Overrides:
      temp in class BootConfig
      Returns:
      null - disable reload
    • shutdown

      public void shutdown()
    • generateTemplate_privateKeyFile

      protected void generateTemplate_privateKeyFile(StringBuilder sb)
    • generateTemplate_privateKeyPwd

      protected void generateTemplate_privateKeyPwd(StringBuilder sb)
    • generateTemplate_publicKeyFile

      protected void generateTemplate_publicKeyFile(StringBuilder sb)
    • generateTemplate_DumpRoleMapping

      protected void generateTemplate_DumpRoleMapping(StringBuilder sb)
      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:
      loadCustomizedConfigs in class BootConfig
      Throws:
      IOException
      org.bouncycastle.operator.OperatorCreationException
      GeneralSecurityException
    • getLdapHost

      public String getLdapHost()
    • getLdapPort

      public int getLdapPort()
    • getLdapBaseDN

      public String getLdapBaseDN()
    • getBindingUserDN

      public String getBindingUserDN()
    • getLdapScheamTenantGroupOU

      public String getLdapScheamTenantGroupOU()
    • getPasswordAlgorithm

      public String getPasswordAlgorithm()
    • setPasswordAlgorithm

      public void setPasswordAlgorithm(String passwordAlgorithm)
    • getLdapSSLConnectionFactoryClassName

      public String getLdapSSLConnectionFactoryClassName()
    • getLdapTLSProtocol

      public String getLdapTLSProtocol()
    • isTypeAD

      public boolean isTypeAD()
    • getLdapConfig

      public Properties getLdapConfig()
    • getJwtSigningKey

      public Key getJwtSigningKey()
    • getJwtParser

      public io.jsonwebtoken.JwtParser getJwtParser()
    • getJwtIssuer

      public String getJwtIssuer()
    • getJwtTTLMinutes

      public int getJwtTTLMinutes()
    • getRole

      public RoleMapping getRole(String role)
    • getRoles

      public Map<String,RoleMapping> getRoles()
    • getBindingPassword

      public String getBindingPassword()
    • getKmf

      public KeyManagerFactory getKmf()
    • getTmf

      public TrustManagerFactory getTmf()
    • getPrivateKeyFile

      public File getPrivateKeyFile()
    • getPrivateKeyPwd

      public String getPrivateKeyPwd()
    • getPublicKeyFile

      public File getPublicKeyFile()
    • getSymmetricKey

      public String getSymmetricKey()
    • addDeclareRoles

      public void addDeclareRoles(Set<String> scanedDeclareRoles)
    • getDeclareRoles

      public Set<String> getDeclareRoles()