public final class ServerHttpSecurity.AuthorizeExchangeSpec.Access
extends java.lang.Object
Constructor and Description |
---|
Access() |
Modifier and Type | Method and Description |
---|---|
ServerHttpSecurity.AuthorizeExchangeSpec |
access(ReactiveAuthorizationManager<AuthorizationContext> manager)
Allows plugging in a custom authorization strategy
|
ServerHttpSecurity.AuthorizeExchangeSpec |
authenticated()
Require an authenticated user
|
ServerHttpSecurity.AuthorizeExchangeSpec |
denyAll()
Deny access for everyone
|
ServerHttpSecurity.AuthorizeExchangeSpec |
hasAnyAuthority(java.lang.String... authorities)
Require any authority
|
ServerHttpSecurity.AuthorizeExchangeSpec |
hasAnyRole(java.lang.String... roles)
Require any specific role.
|
ServerHttpSecurity.AuthorizeExchangeSpec |
hasAuthority(java.lang.String authority)
Require a specific authority.
|
ServerHttpSecurity.AuthorizeExchangeSpec |
hasRole(java.lang.String role)
Require a specific role.
|
ServerHttpSecurity.AuthorizeExchangeSpec |
permitAll()
Allow access for anyone
|
public ServerHttpSecurity.AuthorizeExchangeSpec permitAll()
ServerHttpSecurity.AuthorizeExchangeSpec
to configurepublic ServerHttpSecurity.AuthorizeExchangeSpec denyAll()
ServerHttpSecurity.AuthorizeExchangeSpec
to configurepublic ServerHttpSecurity.AuthorizeExchangeSpec hasRole(java.lang.String role)
hasAuthority(String)
role
- the role (i.e. "USER" would require "ROLE_USER")ServerHttpSecurity.AuthorizeExchangeSpec
to configurepublic ServerHttpSecurity.AuthorizeExchangeSpec hasAnyRole(java.lang.String... roles)
hasAnyAuthority(String...)
roles
- the roles (i.e. "USER" would require "ROLE_USER")ServerHttpSecurity.AuthorizeExchangeSpec
to configurepublic ServerHttpSecurity.AuthorizeExchangeSpec hasAuthority(java.lang.String authority)
authority
- the authority to require (i.e. "USER" would require authority of "USER").ServerHttpSecurity.AuthorizeExchangeSpec
to configurepublic ServerHttpSecurity.AuthorizeExchangeSpec hasAnyAuthority(java.lang.String... authorities)
authorities
- the authorities to require (i.e. "USER" would require authority of "USER").ServerHttpSecurity.AuthorizeExchangeSpec
to configurepublic ServerHttpSecurity.AuthorizeExchangeSpec authenticated()
ServerHttpSecurity.AuthorizeExchangeSpec
to configurepublic ServerHttpSecurity.AuthorizeExchangeSpec access(ReactiveAuthorizationManager<AuthorizationContext> manager)
manager
- the authorization manager to useServerHttpSecurity.AuthorizeExchangeSpec
to configure