Package net.ideahut.springboot.security
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisRequestAuthorized(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) setCredential(net.ideahut.springboot.security.SecurityCredential credential)
-
Constructor Details
-
BasicAuthSecurity
public BasicAuthSecurity()
-
-
Method Details
-
setRealm
-
setCredential
public BasicAuthSecurity setCredential(net.ideahut.springboot.security.SecurityCredential credential) -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
isRequestAuthorized
public boolean isRequestAuthorized(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception - Specified by:
isRequestAuthorizedin interfacenet.ideahut.springboot.security.SecurityAuthorization- Throws:
Exception
-