Package io.quarkus.vertx.http.security
Interface HttpSecurity.HttpPermission
- Enclosing interface:
HttpSecurity
public static interface HttpSecurity.HttpPermission
Represents authorization and authentication requirements for given path patterns.
-
Method Summary
Modifier and TypeMethodDescriptionWhether permission check should be applied on all matching paths, or paths specific for the Jakarta REST resources.HTTP requests will only be accessible ifSecurityIdentityis not anonymous.authenticatedWith(String scheme) HTTP request must be authenticated using a mechanism with matchingHttpCredentialTransport.getAuthenticationScheme().Allows to configure HTTP request authorization requirement on the returned instance.HTTP request must be authenticated using Authorization Code Flow mechanism.basic()HTTP request must be authenticated using basic authentication mechanism configured in the 'application.properties' file or the mechanism created with theBasicAPI and registered against theHttpSecurity.mechanism(HttpAuthenticationMechanism).bearer()HTTP request must be authenticated using Bearer token authentication.form()HTTP request must be authenticated using form-based authentication mechanism configured in the 'application.properties' file or the mechanism created with theFormAPI and registered against theHttpSecurity.mechanism(HttpAuthenticationMechanism).The methods that this permission set applies to.mTLS()HTTP request must be authenticated using mutual-TLS authentication.permit()This method is a shortcut forHttpSecurity.Authorization.permit().policy(HttpSecurityPolicy httpSecurityPolicy) This method is a shortcut forHttpSecurity.Authorization.policy(HttpSecurityPolicy).This method is a shortcut forHttpSecurity.Authorization.roles(String...).shared()Indicates that this policy always applies to the matched paths in addition to the policy with a winning path.webAuthn()HTTP request must be authenticated using WebAuthn mechanism.
-
Method Details
-
basic
HttpSecurity.HttpPermission basic()HTTP request must be authenticated using basic authentication mechanism configured in the 'application.properties' file or the mechanism created with theBasicAPI and registered against theHttpSecurity.mechanism(HttpAuthenticationMechanism). -
form
HttpSecurity.HttpPermission form()HTTP request must be authenticated using form-based authentication mechanism configured in the 'application.properties' file or the mechanism created with theFormAPI and registered against theHttpSecurity.mechanism(HttpAuthenticationMechanism). -
mTLS
HttpSecurity.HttpPermission mTLS()HTTP request must be authenticated using mutual-TLS authentication. -
bearer
HttpSecurity.HttpPermission bearer()HTTP request must be authenticated using Bearer token authentication. -
webAuthn
HttpSecurity.HttpPermission webAuthn()HTTP request must be authenticated using WebAuthn mechanism. -
authorizationCodeFlow
HttpSecurity.HttpPermission authorizationCodeFlow()HTTP request must be authenticated using Authorization Code Flow mechanism. -
authenticated
HttpSecurity authenticated()HTTP requests will only be accessible ifSecurityIdentityis not anonymous. -
authenticatedWith
HTTP request must be authenticated using a mechanism with matchingHttpCredentialTransport.getAuthenticationScheme(). Please note that annotation-based mechanism selection has higher priority during the mechanism selection. -
applyToJaxRs
HttpSecurity.HttpPermission applyToJaxRs()Whether permission check should be applied on all matching paths, or paths specific for the Jakarta REST resources. Programmatic analogy to the 'quarkus.http.auth.permission."permissions".applies-to' configuration property. -
methods
The methods that this permission set applies to. If this is not set then they apply to all methods. Programmatic analogy to the 'quarkus.http.auth.permission."permissions".methods' configuration property. -
authorization
HttpSecurity.Authorization authorization()Allows to configure HTTP request authorization requirement on the returned instance. -
permit
HttpSecurity permit()This method is a shortcut forHttpSecurity.Authorization.permit(). -
roles
This method is a shortcut forHttpSecurity.Authorization.roles(String...). -
policy
This method is a shortcut forHttpSecurity.Authorization.policy(HttpSecurityPolicy).
-