public class ServerHttpSecurity.OAuth2ResourceServerSpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec
Configures JWT Resource Server Support
|
class |
ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec
Configures Opaque Token Resource Server support
|
Constructor and Description |
---|
OAuth2ResourceServerSpec() |
Modifier and Type | Method and Description |
---|---|
ServerHttpSecurity.OAuth2ResourceServerSpec |
accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
Configures the
ServerAccessDeniedHandler to use for requests authenticating with
Bearer Tokens. |
ServerHttpSecurity |
and() |
ServerHttpSecurity.OAuth2ResourceServerSpec |
authenticationEntryPoint(ServerAuthenticationEntryPoint entryPoint)
Configures the
ServerAuthenticationEntryPoint to use for requests authenticating with
Bearer Tokens. |
ServerHttpSecurity.OAuth2ResourceServerSpec |
bearerTokenConverter(ServerAuthenticationConverter bearerTokenConverter)
Configures the
ServerAuthenticationConverter to use for requests authenticating with
Bearer Tokens. |
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec |
jwt() |
ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec |
opaqueToken() |
public ServerHttpSecurity.OAuth2ResourceServerSpec accessDeniedHandler(ServerAccessDeniedHandler accessDeniedHandler)
ServerAccessDeniedHandler
to use for requests authenticating with
Bearer Tokens.
requests.accessDeniedHandler
- the ServerAccessDeniedHandler
to useServerHttpSecurity.OAuth2ResourceServerSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec authenticationEntryPoint(ServerAuthenticationEntryPoint entryPoint)
ServerAuthenticationEntryPoint
to use for requests authenticating with
Bearer Tokens.entryPoint
- the ServerAuthenticationEntryPoint
to useServerHttpSecurity.OAuth2ResourceServerSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec bearerTokenConverter(ServerAuthenticationConverter bearerTokenConverter)
ServerAuthenticationConverter
to use for requests authenticating with
Bearer Tokens.bearerTokenConverter
- The ServerAuthenticationConverter
to useServerHttpSecurity.OAuth2ResourceServerSpec
for additional configurationpublic ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwt()
public ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec opaqueToken()
protected void configure(ServerHttpSecurity http)
public ServerHttpSecurity and()