public class NuxeoLoginModule extends NuxeoAbstractServerLoginModule
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
Constructor and Description |
---|
NuxeoLoginModule() |
Modifier and Type | Method and Description |
---|---|
NuxeoPrincipal |
createIdentity(String username) |
NuxeoPrincipal |
getIdentity() |
protected NuxeoPrincipal |
getPrincipal() |
protected Group[] |
getRoleSets()
Gets the roles the user belongs to.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
protected NuxeoPrincipal |
validateUserIdentity(UserIdentificationInfo userIdent) |
protected NuxeoPrincipal |
validateUsernamePassword(String username,
String password) |
abort, commit, createGroup, logout
public NuxeoLoginModule()
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class NuxeoAbstractServerLoginModule
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class NuxeoAbstractServerLoginModule
LoginException
protected NuxeoPrincipal getPrincipal() throws LoginException
LoginException
public boolean login() throws LoginException
LoginException
public NuxeoPrincipal getIdentity()
getIdentity
in class NuxeoAbstractServerLoginModule
public NuxeoPrincipal createIdentity(String username) throws LoginException
createIdentity
in class NuxeoAbstractServerLoginModule
LoginException
protected NuxeoPrincipal validateUserIdentity(UserIdentificationInfo userIdent) throws LoginException
LoginException
protected NuxeoPrincipal validateUsernamePassword(String username, String password) throws LoginException
LoginException
Copyright © 2018 Nuxeo. All rights reserved.