Class BasicAuthSecurity

java.lang.Object
net.ideahut.springboot.security.BasicAuthSecurity
All Implemented Interfaces:
net.ideahut.springboot.security.SecurityAuthorization, org.springframework.beans.factory.InitializingBean

public class BasicAuthSecurity extends Object implements net.ideahut.springboot.security.SecurityAuthorization, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • BasicAuthSecurity

      public BasicAuthSecurity()
  • Method Details

    • setRealm

      public BasicAuthSecurity setRealm(String realm)
    • setCredential

      public BasicAuthSecurity setCredential(net.ideahut.springboot.security.SecurityCredential credential)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • isRequestAuthorized

      public boolean isRequestAuthorized(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception
      Specified by:
      isRequestAuthorized in interface net.ideahut.springboot.security.SecurityAuthorization
      Throws:
      Exception