Class AtotiSecurityProperties
java.lang.Object
com.activeviam.springboot.atoti.server.starter.api.AtotiSecurityProperties
@ConfigurationProperties(prefix="atoti.server.security")
public final class AtotiSecurityProperties
extends Object
Configuration properties for the Atoti security.
These properties are used to configure the security of the Atoti application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classThe page properties. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanName of the application cookie.Configuration for the resources used for the login page.Configuration for the resources used for the logout page.List of roles assigned to standard users.inthashCode()booleanConfigures the security to enforce the use of HTTPS.voidsetCookieName(String cookieName) Name of the application cookie.voidsetForceHttps(boolean forceHttps) Configures the security to enforce the use of HTTPS.voidConfiguration for the resources used for the login page.voidsetLogoutPage(AtotiSecurityProperties.PageProperties logoutPage) Configuration for the resources used for the logout page.voidsetRolesAdmin(List<String> rolesAdmin) List of roles to consider as Admin.voidsetRolesUser(List<String> rolesUser) List of roles assigned to standard users.toString()
-
Field Details
-
ROLE_ADMIN
Role value assigned to administrators of an Atoti application.- See Also:
-
ROLE_USER
Role value assigned to basic users of an Atoti application.- See Also:
-
-
Constructor Details
-
AtotiSecurityProperties
public AtotiSecurityProperties()
-
-
Method Details
-
getRolesAdmin
-
builder
-
toBuilder
-
getRolesUser
List of roles assigned to standard users. -
getCookieName
Name of the application cookie. -
getLoginPage
Configuration for the resources used for the login page. -
getLogoutPage
Configuration for the resources used for the logout page. -
isForceHttps
public boolean isForceHttps()Configures the security to enforce the use of HTTPS.This particularly applies to login configuration.
-
setRolesAdmin
List of roles to consider as Admin. -
setRolesUser
List of roles assigned to standard users. -
setCookieName
Name of the application cookie. -
setLoginPage
Configuration for the resources used for the login page. -
setLogoutPage
Configuration for the resources used for the logout page. -
setForceHttps
public void setForceHttps(boolean forceHttps) Configures the security to enforce the use of HTTPS.This particularly applies to login configuration.
-
equals
-
hashCode
public int hashCode() -
toString
-