public class DelegatingAuthModule extends java.lang.Object implements CoreAwareAuthModule, WGACoreEventListener
DomainRedirectionAuthModule this module is capable of being created even before the domain is completely setup
and therefor can be used for OpenWGA plugins that want to authenticate against a domain. If the auth module is created before
the auth domain is ready (on OpenWGA startup) then this module caches all auth listeners that register. Once startup has finished
it will delegate all those listeners to the backend module.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPTION_DOMAIN |
| Constructor and Description |
|---|
DelegatingAuthModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticationSourceListener(de.innovationgate.webgate.api.auth.AuthenticationSourceListener listener) |
void |
clearCache() |
void |
contentStoreConnected(WGACoreEvent event)
Called after a content store has been connected
|
void |
contentStoreDisconnected(WGACoreEvent event)
Called after a content store has been disconnected
|
void |
destroy() |
java.lang.Class[] |
getAllowedCredentialClasses() |
java.lang.String |
getAuthenticationSource() |
java.lang.String |
getDomainName() |
java.lang.String |
getEMailAddress(java.lang.String user) |
void |
init(java.util.Map params,
de.innovationgate.webgate.api.WGDatabase db) |
boolean |
isGeneratesSessionToken() |
boolean |
isPoolable() |
boolean |
isQueryable(java.lang.String queryType) |
de.innovationgate.webgate.api.auth.AuthenticationSession |
login(java.lang.String user,
java.lang.Object credentials) |
java.lang.Object |
query(java.lang.Object query,
java.lang.String queryType) |
void |
removeAuthenticationSourceListener(de.innovationgate.webgate.api.auth.AuthenticationSourceListener listener) |
void |
setCore(WGACore core) |
void |
shutdownPostDisconnect(WGACoreEvent event)
Called on WGA shutdown after databases haved been disconnected
|
void |
shutdownPreDisconnect(WGACoreEvent event)
Called on WGA shutdown before databases are disconnected
|
void |
startupPostConnect(WGACoreEvent event)
Called on WGA startup after databases have been connected
|
void |
startupPreConnect(WGACoreEvent event)
Called on WGA startup before databases are connected
|
public static final java.lang.String COPTION_DOMAIN
public java.lang.String getDomainName()
public void setCore(WGACore core)
setCore in interface CoreAwareAuthModulepublic void addAuthenticationSourceListener(de.innovationgate.webgate.api.auth.AuthenticationSourceListener listener)
addAuthenticationSourceListener in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic void clearCache()
clearCache in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic void destroy()
destroy in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic java.lang.Class[] getAllowedCredentialClasses()
getAllowedCredentialClasses in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic java.lang.String getAuthenticationSource()
getAuthenticationSource in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic java.lang.String getEMailAddress(java.lang.String user)
getEMailAddress in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic void init(java.util.Map params,
de.innovationgate.webgate.api.WGDatabase db)
throws de.innovationgate.webgate.api.auth.ConfigurationException
init in interface de.innovationgate.webgate.api.auth.AuthenticationModulede.innovationgate.webgate.api.auth.ConfigurationExceptionpublic boolean isGeneratesSessionToken()
isGeneratesSessionToken in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic boolean isPoolable()
public boolean isQueryable(java.lang.String queryType)
isQueryable in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic de.innovationgate.webgate.api.auth.AuthenticationSession login(java.lang.String user,
java.lang.Object credentials)
throws de.innovationgate.webgate.api.auth.AuthenticationException
login in interface de.innovationgate.webgate.api.auth.AuthenticationModulede.innovationgate.webgate.api.auth.AuthenticationExceptionpublic java.lang.Object query(java.lang.Object query,
java.lang.String queryType)
throws de.innovationgate.webgate.api.WGQueryException
query in interface de.innovationgate.webgate.api.auth.AuthenticationModulede.innovationgate.webgate.api.WGQueryExceptionpublic void removeAuthenticationSourceListener(de.innovationgate.webgate.api.auth.AuthenticationSourceListener listener)
removeAuthenticationSourceListener in interface de.innovationgate.webgate.api.auth.AuthenticationModulepublic void contentStoreConnected(WGACoreEvent event)
WGACoreEventListenercontentStoreConnected in interface WGACoreEventListenerpublic void contentStoreDisconnected(WGACoreEvent event)
WGACoreEventListenercontentStoreDisconnected in interface WGACoreEventListenerpublic void shutdownPostDisconnect(WGACoreEvent event)
WGACoreEventListenershutdownPostDisconnect in interface WGACoreEventListenerpublic void shutdownPreDisconnect(WGACoreEvent event)
WGACoreEventListenershutdownPreDisconnect in interface WGACoreEventListenerpublic void startupPostConnect(WGACoreEvent event)
WGACoreEventListenerstartupPostConnect in interface WGACoreEventListenerpublic void startupPreConnect(WGACoreEvent event)
WGACoreEventListenerstartupPreConnect in interface WGACoreEventListener