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 CoreAwareAuthModule
public void addAuthenticationSourceListener(de.innovationgate.webgate.api.auth.AuthenticationSourceListener listener)
addAuthenticationSourceListener
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public void clearCache()
clearCache
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public void destroy()
destroy
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public java.lang.Class[] getAllowedCredentialClasses()
getAllowedCredentialClasses
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public java.lang.String getAuthenticationSource()
getAuthenticationSource
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public java.lang.String getEMailAddress(java.lang.String user)
getEMailAddress
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public 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.AuthenticationModule
de.innovationgate.webgate.api.auth.ConfigurationException
public boolean isGeneratesSessionToken()
isGeneratesSessionToken
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public boolean isPoolable()
public boolean isQueryable(java.lang.String queryType)
isQueryable
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public 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.AuthenticationModule
de.innovationgate.webgate.api.auth.AuthenticationException
public 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.AuthenticationModule
de.innovationgate.webgate.api.WGQueryException
public void removeAuthenticationSourceListener(de.innovationgate.webgate.api.auth.AuthenticationSourceListener listener)
removeAuthenticationSourceListener
in interface de.innovationgate.webgate.api.auth.AuthenticationModule
public void contentStoreConnected(WGACoreEvent event)
WGACoreEventListener
contentStoreConnected
in interface WGACoreEventListener
public void contentStoreDisconnected(WGACoreEvent event)
WGACoreEventListener
contentStoreDisconnected
in interface WGACoreEventListener
public void shutdownPostDisconnect(WGACoreEvent event)
WGACoreEventListener
shutdownPostDisconnect
in interface WGACoreEventListener
public void shutdownPreDisconnect(WGACoreEvent event)
WGACoreEventListener
shutdownPreDisconnect
in interface WGACoreEventListener
public void startupPostConnect(WGACoreEvent event)
WGACoreEventListener
startupPostConnect
in interface WGACoreEventListener
public void startupPreConnect(WGACoreEvent event)
WGACoreEventListener
startupPreConnect
in interface WGACoreEventListener