public abstract class AbstractKeycloakLoginModule extends Object implements LoginModule
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractKeycloakLoginModule.Auth |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractKeycloakLoginModule.Auth |
auth |
protected CallbackHandler |
callbackHandler |
protected KeycloakDeployment |
deployment |
static String |
KEYCLOAK_CONFIG_FILE_OPTION |
protected Subject |
subject |
| Constructor and Description |
|---|
AbstractKeycloakLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
protected AbstractKeycloakLoginModule.Auth |
bearerAuth(String tokenString) |
boolean |
commit() |
protected abstract AbstractKeycloakLoginModule.Auth |
doAuth(String username,
String password) |
protected abstract org.jboss.logging.Logger |
getLogger() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
protected KeycloakDeployment |
resolveDeployment(String keycloakConfigFile) |
public static final String KEYCLOAK_CONFIG_FILE_OPTION
protected Subject subject
protected CallbackHandler callbackHandler
protected AbstractKeycloakLoginModule.Auth auth
protected KeycloakDeployment deployment
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleprotected KeycloakDeployment resolveDeployment(String keycloakConfigFile)
public boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionprotected AbstractKeycloakLoginModule.Auth bearerAuth(String tokenString) throws VerificationException
VerificationExceptionprotected abstract AbstractKeycloakLoginModule.Auth doAuth(String username, String password) throws Exception
Exceptionprotected abstract org.jboss.logging.Logger getLogger()
Copyright © 2014. All Rights Reserved.