@ApplicationScoped public class JWTAuthMechanismFactory extends Object implements io.undertow.security.api.AuthenticationMechanismFactory
| Constructor and Description |
|---|
JWTAuthMechanismFactory() |
| Modifier and Type | Method and Description |
|---|---|
io.undertow.security.api.AuthenticationMechanism |
create(String mechanismName,
io.undertow.server.handlers.form.FormParserFactory formParserFactory,
Map<String,String> properties)
This builds the JWTAuthMechanism with a JWTAuthContextInfo containing the issuer and signer public key needed
to validate the token.
|
void |
init() |
@PostConstruct public void init()
public io.undertow.security.api.AuthenticationMechanism create(String mechanismName, io.undertow.server.handlers.form.FormParserFactory formParserFactory, Map<String,String> properties)
create in interface io.undertow.security.api.AuthenticationMechanismFactorymechanismName - - the login-config/auth-method, which will be MP-JWT for JWTAuthMechanismformParserFactory - - unused form type of authentication factoryproperties - - the query parameters from the web.xml/login-config/auth-method value. We look for an issuedBy
and signerPubKey property to use for token validation.JWTAuthContextInfoCopyright © 2018 JBoss by Red Hat. All rights reserved.