public abstract class NuxeoAbstractServerLoginModule extends Object implements LoginModule
LoginModule SPI from javax.security.auth.spi.| Modifier and Type | Field and Description |
|---|---|
protected CallbackHandler |
callbackHandler |
protected boolean |
loginOk |
protected Map |
options |
protected String |
principalClassName
An optional custom Principal class implementation
|
protected Map |
sharedState |
protected Subject |
subject |
protected Principal |
unauthenticatedIdentity
the principal to use when a null username and password are seen
|
protected boolean |
useFirstPass
Flag indicating if the shared credential should be used
|
| Constructor and Description |
|---|
NuxeoAbstractServerLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
commit() |
protected Group |
createGroup(String name,
Set<Principal> principals)
Finds or creates a Group with the given name.
|
protected abstract Principal |
createIdentity(String username) |
protected abstract Principal |
getIdentity() |
protected abstract Group[] |
getRoleSets() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
logout() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloginprotected Map sharedState
protected boolean loginOk
protected String principalClassName
protected Principal unauthenticatedIdentity
protected CallbackHandler callbackHandler
protected boolean useFirstPass
public NuxeoAbstractServerLoginModule()
protected abstract Principal getIdentity()
protected abstract Group[] getRoleSets() throws LoginException
LoginExceptionprotected abstract Principal createIdentity(String username) throws LoginException
LoginExceptionpublic boolean abort() throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean commit() throws LoginException
commit in interface LoginModuleLoginExceptionpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModulepublic boolean logout() throws LoginException
logout in interface LoginModuleLoginExceptionprotected Group createGroup(String name, Set<Principal> principals)
Copyright © 2018 Nuxeo. All rights reserved.