H - public final class VaadinStatelessSecurityConfigurer<H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>> extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<VaadinStatelessSecurityConfigurer<H>,H>
SecurityContextRepository is populated with a
JwtSecurityContextRepositoryCsrfConfigurer.csrfTokenRepository(CsrfTokenRepository) is used
to set LazyCsrfTokenRepository that delegates to
CookieCsrfTokenRepositoryVaadinDefaultRequestCache - if present, this uses
VaadinDefaultRequestCache.setDelegateRequestCache(RequestCache) to
delegate saving requests to CookieRequestCache| Modifier and Type | Class and Description |
|---|---|
class |
VaadinStatelessSecurityConfigurer.SecretKeyConfigurer
Enables configuring the secret key and the algorithm for the JWT signing
and verification when using
VaadinStatelessSecurityConfigurer. |
| Constructor and Description |
|---|
VaadinStatelessSecurityConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(H http) |
VaadinStatelessSecurityConfigurer<H> |
expiresIn(long expiresIn)
Sets the lifetime of the JWT.
|
void |
init(H http) |
VaadinStatelessSecurityConfigurer<H> |
issuer(String issuer)
Sets the issuer claim to use when issuing and verifying the JWT.
|
VaadinStatelessSecurityConfigurer.SecretKeyConfigurer |
withSecretKey()
Specifies using a secret key for signing and verification.
|
VaadinStatelessSecurityConfigurer<H> |
withSecretKey(org.springframework.security.config.Customizer<VaadinStatelessSecurityConfigurer.SecretKeyConfigurer> customizer)
Specifies using a secret key for signing and verification.
|
disable, withObjectPostProcessorpublic void init(H http)
init in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>init in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>public void configure(H http)
configure in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>configure in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,H extends org.springframework.security.config.annotation.web.HttpSecurityBuilder<H>>public VaadinStatelessSecurityConfigurer<H> expiresIn(long expiresIn)
expiresIn - the lifetime in secondsVaadinStatelessSecurityConfigurer for further
customizationpublic VaadinStatelessSecurityConfigurer<H> issuer(String issuer)
issuer - string identifier or URL of the issuerVaadinStatelessSecurityConfigurer for further
customizationpublic VaadinStatelessSecurityConfigurer.SecretKeyConfigurer withSecretKey()
public VaadinStatelessSecurityConfigurer<H> withSecretKey(org.springframework.security.config.Customizer<VaadinStatelessSecurityConfigurer.SecretKeyConfigurer> customizer)
customizer - the Customizer to provide configuration for the
VaadinStatelessSecurityConfigurer.SecretKeyConfigurerVaadinStatelessSecurityConfigurer for further
customizationCopyright © 2021 Vaadin Ltd. All Rights Reserved.