Package com.aquima.web.config.properties
Class SecurityConfigProperties
java.lang.Object
com.aquima.web.config.properties.SecurityConfigProperties
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@RefreshScope
@ConfigurationProperties(prefix="blueriq.security")
@Component
public class SecurityConfigProperties
extends Object
implements org.springframework.beans.factory.InitializingBean
- Since:
- 10.0
- Author:
- MihaiBob
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAuthProviderProperty
(String authProviderName, String propertyName, boolean required) Get an authentication provider property value from the Spring environmentString[]
int
getCors()
getHttp()
getLdapProperties
(String authProviderName) List containing all the allowed redirect URLsvoid
setAuthProvidersChain
(String authProvidersChain) void
setBcryptStrength
(int bcryptStrength) void
setClickJackingProtection
(SecurityConfigProperties.ClickJackingProtection clickJackingProtection) void
setCookieSameSite
(SecurityConfigProperties.CookieSameSite cookieSameSite) void
void
setCsrfProtection
(SecurityConfigProperties.CsrfProtection csrfProtection) void
void
void
setLoginType
(String loginType) void
setRedirectUrlWhitelist
(List<String> redirectUrlWhitelist) void
setSessionFixationProtection
(SecurityConfigProperties.SessionFixationProtectionProperties sessionFixationProtection) void
setStrictTransportProtection
(SecurityConfigProperties.StrictTransportProtection strictTransportProtection) void
void
setXContentTypeProtection
(SecurityConfigProperties.XContentTypeProtection xcontentTypeProtection) void
setXssProtection
(SecurityConfigProperties.XssProtection xssProtection) void
setXxeProtection
(SecurityConfigProperties.XxeProtection xxeProtection)
-
Constructor Details
-
Method Details
-
getAuthProvidersChainSplitted
- Returns:
- Array of authentication provider names defined in the chain, never null. Any whitespace surrounding the provider names is trimmed of
-
setAuthProvidersChain
-
getBcryptStrength
public int getBcryptStrength() -
setBcryptStrength
public void setBcryptStrength(int bcryptStrength) -
getRedirectUrlWhitelist
List containing all the allowed redirect URLsIndicates the prefix that a redirect URL must start with. It is case sensitive.
- Returns:
- the list of allowed URL prefixes that is allowed to be redirected to
-
setRedirectUrlWhitelist
-
getAuthProviderProperty
public String getAuthProviderProperty(String authProviderName, String propertyName, boolean required) Get an authentication provider property value from the Spring environment- Parameters:
authProviderName
- The name of the authentication provider to get the property value forpropertyName
- The name of the property to get the value forrequired
- whether property is required- Returns:
- The authentication provider property value, never null
-
getLdapProperties
-
getClickJackingProtection
-
setClickJackingProtection
public void setClickJackingProtection(SecurityConfigProperties.ClickJackingProtection clickJackingProtection) -
getCsrfProtection
-
setCsrfProtection
-
getLoginType
-
setLoginType
-
getStrictTransportProtection
-
setStrictTransportProtection
public void setStrictTransportProtection(SecurityConfigProperties.StrictTransportProtection strictTransportProtection) -
getXContentTypeProtection
-
setXContentTypeProtection
public void setXContentTypeProtection(SecurityConfigProperties.XContentTypeProtection xcontentTypeProtection) -
getXssProtection
-
setXssProtection
-
getXxeProtection
-
setXxeProtection
-
getReferrerPolicy
-
getHttp
-
setHttp
-
getKeystore
-
setKeystore
-
getCors
-
setCors
-
getSessionFixationProtection
-
setSessionFixationProtection
public void setSessionFixationProtection(SecurityConfigProperties.SessionFixationProtectionProperties sessionFixationProtection) -
getTruststore
-
setTruststore
-
getCookieSameSite
-
setCookieSameSite
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-