public class SyncopeLoginModule extends AbstractKarafLoginModule
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDRESS |
static String |
ADMIN_PASSWORD |
static String |
ADMIN_USER |
static String |
USE_ROLES_FOR_SYNCOPE2 |
static String |
VERSION |
bundleContext, callbackHandler, commitSucceeded, debug, detailedLoginExcepion, options, principals, roleDiscriminator, rolePolicy, subject, succeeded, user| Constructor and Description |
|---|
SyncopeLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
extractingRolesSyncope1(String response)
Extract the user roles from the XML provided by Syncope 1.x.
|
protected List<String> |
extractingRolesSyncope2(String response)
Extract the user roles from the JSON provided by Syncope 2.x.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
abort, checkPassword, clear, commit, initialize, logoutpublic static final String ADDRESS
public static final String VERSION
public static final String USE_ROLES_FOR_SYNCOPE2
public static final String ADMIN_USER
public static final String ADMIN_PASSWORD
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
public boolean login()
throws LoginException
LoginExceptionprotected List<String> extractingRolesSyncope1(String response) throws Exception
response - the HTTP response from Syncope.Exception - in case of extraction failure.protected List<String> extractingRolesSyncope2(String response) throws Exception
response - the HTTP response from Syncope.Exception - in case of extracting failure.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.