public class JWTAuthMechanism extends Object implements io.undertow.security.api.AuthenticationMechanism
| Constructor and Description |
|---|
JWTAuthMechanism(io.undertow.security.idm.IdentityManager identityManager) |
JWTAuthMechanism(io.smallrye.jwt.auth.principal.JWTAuthContextInfo authContextInfo,
io.undertow.security.idm.IdentityManager identityManager) |
| Modifier and Type | Method and Description |
|---|---|
io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext)
Extract the Authorization header and validate the bearer token if it exists.
|
io.undertow.security.api.AuthenticationMechanism.ChallengeResult |
sendChallenge(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext) |
public JWTAuthMechanism(io.smallrye.jwt.auth.principal.JWTAuthContextInfo authContextInfo,
io.undertow.security.idm.IdentityManager identityManager)
public JWTAuthMechanism(io.undertow.security.idm.IdentityManager identityManager)
public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext)
authenticate in interface io.undertow.security.api.AuthenticationMechanismexchange - - the http request exchange objectsecurityContext - - the current security context thatpublic io.undertow.security.api.AuthenticationMechanism.ChallengeResult sendChallenge(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext)
sendChallenge in interface io.undertow.security.api.AuthenticationMechanismCopyright © 2019 JBoss by Red Hat. All rights reserved.