public class JWTAuthMechanismFactory extends Object
Constructor and Description |
---|
JWTAuthMechanismFactory() |
Modifier and Type | Method and Description |
---|---|
AuthenticationMechanism |
create(String mechanismName,
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 AuthenticationMechanism create(String mechanismName, FormParserFactory formParserFactory, Map<String,String> properties)
mechanismName
- - 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.JWTAuthContextInfo
Copyright © 2019 JBoss by Red Hat. All rights reserved.