public class JWTLoginModule
extends org.jboss.security.auth.spi.RoleMappingLoginModule
| Constructor and Description |
|---|
JWTLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
protected JWTCallerPrincipal |
validate(JWTCredential jwtCredential)
Validate the bearer token passed in with the authorization header
|
getIdentity, getRoleSetspublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class org.jboss.security.auth.spi.RoleMappingLoginModulepublic boolean login()
throws LoginException
login in interface LoginModulelogin in class org.jboss.security.auth.spi.RoleMappingLoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModulecommit in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionprotected JWTCallerPrincipal validate(JWTCredential jwtCredential) throws ParseException
jwtCredential - - the input bearer tokenParseException - - thrown on token parse or validation failureCopyright © 2018 JBoss by Red Hat. All rights reserved.