public class JWTAuthMechanism extends Object implements io.undertow.security.api.AuthenticationMechanism
| Constructor and Description |
|---|
JWTAuthMechanism(JWTAuthContextInfo authContextInfo) |
| 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.
|
protected org.jboss.security.identity.RoleGroup |
extract(Subject subject)
Extract the Roles group and return it as a RoleGroup
|
io.undertow.security.api.AuthenticationMechanism.ChallengeResult |
sendChallenge(io.undertow.server.HttpServerExchange exchange,
io.undertow.security.api.SecurityContext securityContext) |
public JWTAuthMechanism(JWTAuthContextInfo authContextInfo)
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.AuthenticationMechanismprotected org.jboss.security.identity.RoleGroup extract(Subject subject)
subject - authenticated subjectCopyright © 2018 JBoss by Red Hat. All rights reserved.