@ApplicationScoped public class HttpAuthenticator extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
HttpAuthenticator.NoAuthenticationMechanism |
(package private) static class |
HttpAuthenticator.NoopCloseTask |
Modifier and Type | Field and Description |
---|---|
(package private) io.quarkus.security.identity.IdentityProviderManager |
identityProviderManager |
(package private) HttpAuthenticationMechanism[] |
mechanisms |
Constructor and Description |
---|
HttpAuthenticator() |
HttpAuthenticator(javax.enterprise.inject.Instance<HttpAuthenticationMechanism> instance,
javax.enterprise.inject.Instance<io.quarkus.security.identity.IdentityProvider<?>> providers) |
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<ChallengeData> |
getChallenge(io.vertx.ext.web.RoutingContext routingContext) |
CompletionStage<Void> |
sendChallenge(io.vertx.ext.web.RoutingContext routingContext,
Runnable closeTask) |
@Inject io.quarkus.security.identity.IdentityProviderManager identityProviderManager
final HttpAuthenticationMechanism[] mechanisms
public HttpAuthenticator()
@Inject public HttpAuthenticator(javax.enterprise.inject.Instance<HttpAuthenticationMechanism> instance, javax.enterprise.inject.Instance<io.quarkus.security.identity.IdentityProvider<?>> providers)
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.public CompletionStage<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext routingContext)
Copyright © 2020 JBoss by Red Hat. All rights reserved.