public class NuxeoLoginModule extends NuxeoAbstractServerLoginModule
callbackHandler, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
Constructor and Description |
---|
NuxeoLoginModule() |
Modifier and Type | Method and Description |
---|---|
Principal |
createIdentity(String username) |
Principal |
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 Principal getIdentity()
getIdentity
in class NuxeoAbstractServerLoginModule
public Principal 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 © 2016 Nuxeo SA. All rights reserved.