public class TokenAuthLoginModule extends Object implements LoginModule
LoginModule authenticates users using token.
tokenStr: token-string
tokenCache: token-cache-file
armorCache: armor-cache-file| Modifier and Type | Field and Description |
|---|---|
static String |
ARMOR_CACHE |
static String |
CREDENTIAL_CACHE |
static String |
PRINCIPAL |
static String |
SIGN_KEY_FILE |
static String |
TOKEN |
static String |
TOKEN_CACHE |
| Constructor and Description |
|---|
TokenAuthLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
commit() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
public static final String PRINCIPAL
public static final String TOKEN
public static final String TOKEN_CACHE
public static final String ARMOR_CACHE
public static final String CREDENTIAL_CACHE
public static final String SIGN_KEY_FILE
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModulepublic 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 LoginModuleLoginExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.