Package io.quarkus.vertx.http.security
Class Form.Builder
java.lang.Object
io.quarkus.vertx.http.security.Form.Builder
- Enclosing interface:
Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()cookieDomain(String cookieDomain) Configures the 'domain' attribute for the session and location cookies.cookieMaxAge(Duration cookieMaxAge) Configures the Max-Age attribute for the session cookie.cookieName(String cookieName) Configures a name for the cookie that is used to store the persistent session.cookiePath(String cookiePath) Configures the cookie path for the session and location cookies.cookieSameSite(FormAuthConfig.CookieSameSite cookieSameSite) Configures the SameSite attribute for the session and location cookies.encryptionKey(String encryptionKey) Configures the encryption key that is used to store persistent logins for the Form-based authentication.Configures the error page.errorPageQueryParameters(String... queryParameters) Configures query parameters Quarkus passes through when redirecting requests to the error page.This method is a shortcut forhttpOnlyCookie(true).httpOnlyCookie(boolean httpOnlyCookie) Configures the HttpOnly attribute to prevent access to the cookie via JavaScript.landingPage(String landingPage) Configures the landing page to redirect to if there is no saved page to redirect back to.landingPageQueryParameters(String... queryParameters) Configures query parameters Quarkus passes through when redirecting requests to the landing page.locationCookie(String locationCookie) Configures a name for the cookie that is used to redirect the user back to the location they want to access.Configures the login page.loginPageQueryParameters(String... queryParameters) Configures query parameters Quarkus passes through when redirecting requests to the login page.newCookieInterval(Duration newCookieInterval) Configures how old a cookie can get before it will be replaced with a new cookie with an updated timeout.passwordParameter(String passwordParameter) Configures the password field name.postLocation(String postLocation) Configures the post location.Configures the inactivity timeout.usernameParameter(String usernameParameter) Configures the username field name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
postLocation
Configures the post location.- Parameters:
postLocation- see the 'quarkus.http.auth.form.post-location' configuration property- Returns:
- Builder
- See Also:
-
loginPage
Configures the login page.- Parameters:
loginPage- see the 'quarkus.http.auth.form.login-page' configuration property- Returns:
- Builder
- See Also:
-
loginPageQueryParameters
Configures query parameters Quarkus passes through when redirecting requests to the login page.- Parameters:
queryParameters- query parameters; must not be null- Returns:
- Builder
- See Also:
-
usernameParameter
Configures the username field name.- Parameters:
usernameParameter- see the 'quarkus.http.auth.form.username-parameter' configuration property- Returns:
- Builder
- See Also:
-
passwordParameter
Configures the password field name.- Parameters:
passwordParameter- see the 'quarkus.http.auth.form.password-parameter' configuration property- Returns:
- Builder
- See Also:
-
errorPage
Configures the error page.- Parameters:
errorPage- see the 'quarkus.http.auth.form.error-page' configuration property- Returns:
- Builder
- See Also:
-
errorPageQueryParameters
Configures query parameters Quarkus passes through when redirecting requests to the error page.- Parameters:
queryParameters- query parameters; must not be null- Returns:
- Builder
- See Also:
-
landingPage
Configures the landing page to redirect to if there is no saved page to redirect back to.- Parameters:
landingPage- see the 'quarkus.http.auth.form.landing-page' configuration property- Returns:
- Builder
- See Also:
-
landingPageQueryParameters
Configures query parameters Quarkus passes through when redirecting requests to the landing page.- Parameters:
queryParameters- query parameters; must not be null- Returns:
- Builder
- See Also:
-
locationCookie
Configures a name for the cookie that is used to redirect the user back to the location they want to access.- Parameters:
locationCookie- see the 'quarkus.http.auth.form.location-cookie' configuration property- Returns:
- Builder
- See Also:
-
timeout
Configures the inactivity timeout.- Parameters:
timeout- see the 'quarkus.http.auth.form.timeout' configuration property- Returns:
- Builder
- See Also:
-
newCookieInterval
Configures how old a cookie can get before it will be replaced with a new cookie with an updated timeout.- Parameters:
newCookieInterval- see the 'quarkus.http.auth.form.new-cookie-interval' configuration property- Returns:
- Builder
- See Also:
-
cookieName
Configures a name for the cookie that is used to store the persistent session.- Parameters:
cookieName- see the 'quarkus.http.auth.form.cookie-name' configuration property- Returns:
- Builder
- See Also:
-
cookiePath
Configures the cookie path for the session and location cookies.- Parameters:
cookiePath- see the 'quarkus.http.auth.form.cookie-path' configuration property- Returns:
- Builder
- See Also:
-
cookieDomain
Configures the 'domain' attribute for the session and location cookies.- Parameters:
cookieDomain- see the 'quarkus.http.auth.form.cookie-domain' configuration property- Returns:
- Builder
- See Also:
-
httpOnlyCookie
Configures the HttpOnly attribute to prevent access to the cookie via JavaScript.- Parameters:
httpOnlyCookie- see the 'quarkus.http.auth.form.http-only-cookie' configuration property- Returns:
- Builder
- See Also:
-
httpOnlyCookie
This method is a shortcut forhttpOnlyCookie(true).- Returns:
- Builder
- See Also:
-
cookieSameSite
Configures the SameSite attribute for the session and location cookies.- Parameters:
cookieSameSite- see the 'quarkus.http.auth.form.cookie-same-site' configuration property- Returns:
- Builder
- See Also:
-
cookieMaxAge
Configures the Max-Age attribute for the session cookie.- Parameters:
cookieMaxAge- see the 'quarkus.http.auth.form.cookie-max-age' configuration property- Returns:
- Builder
- See Also:
-
encryptionKey
Configures the encryption key that is used to store persistent logins for the Form-based authentication.- Parameters:
encryptionKey- see the 'quarkus.http.auth.session.encryption-key' configuration property- Returns:
- Builder
- See Also:
-
build
-