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, wait
login
protected 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
LoginException
protected abstract Principal createIdentity(String username) throws LoginException
LoginException
public boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
protected Group createGroup(String name, Set<Principal> principals)
Copyright © 2018 Nuxeo. All rights reserved.