Class JWTAuthMechanism
java.lang.Object
io.quarkus.smallrye.jwt.runtime.auth.JWTAuthMechanism
- All Implemented Interfaces:
HttpAuthenticationMechanism
@ApplicationScoped
public class JWTAuthMechanism
extends Object
implements HttpAuthenticationMechanism
An AuthenticationMechanism that validates a caller based on a MicroProfile JWT bearer token
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
HttpAuthenticationMechanism.ChallengeSender -
Field Summary
FieldsModifier and TypeFieldDescription(package private) io.smallrye.jwt.auth.principal.JWTAuthContextInfoprotected static final Stringstatic final Stringprotected static final StringFields inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager) io.smallrye.mutiny.Uni<ChallengeData> getChallenge(io.vertx.ext.web.RoutingContext context) io.smallrye.mutiny.Uni<HttpCredentialTransport> getCredentialTransport(io.vertx.ext.web.RoutingContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.vertx.http.runtime.security.HttpAuthenticationMechanism
getCredentialTransport, getPriority, sendChallenge
-
Field Details
-
COOKIE_HEADER
- See Also:
-
AUTHORIZATION_HEADER
- See Also:
-
BEARER
- See Also:
-
authContextInfo
@Inject io.smallrye.jwt.auth.principal.JWTAuthContextInfo authContextInfo
-
-
Constructor Details
-
JWTAuthMechanism
-
-
Method Details
-
authenticate
public io.smallrye.mutiny.Uni<io.quarkus.security.identity.SecurityIdentity> authenticate(io.vertx.ext.web.RoutingContext context, io.quarkus.security.identity.IdentityProviderManager identityProviderManager) - Specified by:
authenticatein interfaceHttpAuthenticationMechanism
-
getChallenge
- Specified by:
getChallengein interfaceHttpAuthenticationMechanism
-
getCredentialTypes
public Set<Class<? extends io.quarkus.security.identity.request.AuthenticationRequest>> getCredentialTypes()- Specified by:
getCredentialTypesin interfaceHttpAuthenticationMechanism
-
getCredentialTransport
public io.smallrye.mutiny.Uni<HttpCredentialTransport> getCredentialTransport(io.vertx.ext.web.RoutingContext context) - Specified by:
getCredentialTransportin interfaceHttpAuthenticationMechanism
-