@ApplicationScoped public class HttpAuthenticator extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
HttpAuthenticator.NoopCloseTask |
| Modifier and Type | Field and Description |
|---|---|
(package private) io.quarkus.security.identity.IdentityProviderManager |
identityProviderManager |
(package private) HttpAuthenticationMechanism |
mechanism |
| Constructor and Description |
|---|
HttpAuthenticator() |
HttpAuthenticator(HttpAuthenticationMechanism mechanism) |
HttpAuthenticator(javax.enterprise.inject.Instance<HttpAuthenticationMechanism> instance,
javax.enterprise.inject.Instance<io.quarkus.security.identity.IdentityProvider<io.quarkus.security.identity.request.UsernamePasswordAuthenticationRequest>> usernamePassword) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<io.quarkus.security.identity.SecurityIdentity> |
attemptAuthentication(io.vertx.ext.web.RoutingContext routingContext)
Attempts authentication with the contents of the request.
|
CompletionStage<Void> |
sendChallenge(io.vertx.ext.web.RoutingContext routingContext,
Runnable closeTask) |
@Inject io.quarkus.security.identity.IdentityProviderManager identityProviderManager
final HttpAuthenticationMechanism mechanism
public HttpAuthenticator()
@Inject public HttpAuthenticator(javax.enterprise.inject.Instance<HttpAuthenticationMechanism> instance, javax.enterprise.inject.Instance<io.quarkus.security.identity.IdentityProvider<io.quarkus.security.identity.request.UsernamePasswordAuthenticationRequest>> usernamePassword)
public HttpAuthenticator(HttpAuthenticationMechanism mechanism)
public CompletionStage<io.quarkus.security.identity.SecurityIdentity> attemptAuthentication(io.vertx.ext.web.RoutingContext routingContext)
AuthenticationFailedException
If no credentials are present it will resolve to null.public CompletionStage<Void> sendChallenge(io.vertx.ext.web.RoutingContext routingContext, Runnable closeTask)
closeTask - The task that should be run to finalize the HTTP exchange.Copyright © 2019 JBoss by Red Hat. All rights reserved.