Class HttpCredentialTransport
java.lang.Object
io.quarkus.vertx.http.runtime.security.HttpCredentialTransport
A representation of HTTP credential transport. In particular this includes things such as:
Cookies
Authorization header
POST
Note that using multiple HTTP authentication mechanisms to use the same credential
transport type can lead to unexpected authentication failures as they will not be able to figure out which mechanisms should
process which
request.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHttpCredentialTransport(HttpCredentialTransport.Type transportType, String typeTarget) HttpCredentialTransport constructor that accepts two parameters.HttpCredentialTransport(HttpCredentialTransport.Type transportType, String typeTarget, String authenticationScheme) HttpCredentialTransport constructor that accepts three parameters. -
Method Summary
-
Constructor Details
-
HttpCredentialTransport
HttpCredentialTransport constructor that accepts two parameters.- Parameters:
transportType- the transport type, for example,HttpCredentialTransport.Type.AUTHORIZATIONtypeTarget- the type target, case-insensitive, for example, "Bearer". It also becomes an authentication scheme returned fromgetAuthenticationScheme()
-
HttpCredentialTransport
public HttpCredentialTransport(HttpCredentialTransport.Type transportType, String typeTarget, String authenticationScheme) HttpCredentialTransport constructor that accepts three parameters.- Parameters:
transportType- the transport type, for example,HttpCredentialTransport.Type.AUTHORIZATIONtypeTarget- the type target, case-insensitive, for example, "Bearer" or a Form authentication post location.authenticationScheme- case-insensitive. Usually, it is equal to thetypeTargetbut can also take a unique value. For example, "Form" for a Form authentication mechanism whosetypeTargetmay be set to a form post location.Both
HttpAuthenticationMechanism.value()and an optional HTTP security policy's `auth-mechanism` property must be set to the "authenticationScheme" value to find a matchingHttpAuthenticationMechanismthat must secure a specific REST resource method or request path. For example, '@HttpAuthenticationMechanism("custom-scheme")', 'quarkus.http.auth.permission.my-policy.auth-mechanism=custom-scheme'.
-
-
Method Details