public class MockKeepFactory
extends java.lang.Object
implements com.hcl.domino.keep.KeepFactory
Constructor and Description |
---|
MockKeepFactory(io.vertx.core.Vertx vertx) |
Modifier and Type | Method and Description |
---|---|
MockKeepFactory |
allowDominoLogin(boolean allow)
Switch on/off Domino login
|
MockKeepFactory |
allowLocalUsers(boolean allow)
Switch on/off Keep local users
|
com.hcl.domino.DominoClient |
authenticatedDominoClient(java.lang.String userName,
java.lang.String password) |
com.hcl.domino.keep.dbrequests.identity.AuthLogin |
getAuthLogin() |
com.hcl.domino.keep.ConfigLoader |
getConfigLoader(io.vertx.core.Vertx vertxx,
io.vertx.core.eventbus.EventBus eventBus,
com.hcl.domino.keep.ConfigLoader.LoaderType loaderType) |
com.hcl.domino.keep.cache.DesignCache |
getDesignCache() |
com.hcl.domino.DominoProcess |
getDominoProcess() |
com.hcl.domino.keep.security.JwtManager |
getJwtManager() |
com.hcl.domino.keep.config.KeepConfig |
getKeepConfig() |
com.hcl.domino.keep.dbrequests.KeepJnxSession |
getKeepJnxSession(com.hcl.domino.keep.security.KeepUser user) |
com.hcl.domino.keep.saml.KeepSAML |
getKeepSAML() |
com.hcl.domino.keep.metrics.KeepStatistics |
getKeepStatistics() |
io.vertx.ext.auth.ldap.LdapAuthentication |
getLdapAuthentication(io.vertx.core.Vertx vertx2,
io.vertx.ext.auth.ldap.LdapAuthenticationOptions options) |
com.hcl.domino.keep.cache.NameLookupCache |
getNameCache() |
com.hcl.domino.DominoProcess.DominoThreadContext |
getThreadContext() |
com.hcl.domino.DominoProcess.DominoThreadContext |
getThreadContext(com.hcl.domino.DominoProcess process) |
com.hcl.domino.DominoClient |
namedDominoClient(java.lang.String userName) |
MockKeepFactory |
setAuthLogin(com.hcl.domino.keep.dbrequests.identity.AuthLogin al) |
void |
setFailLdap(boolean failLdap)
Set failLdap for Testing ldap authentication fail
|
MockKeepFactory |
setJwtManager(com.hcl.domino.keep.security.JwtManager manager)
set/overwrite JWT Manager for testing
|
void |
setLookupCache(com.hcl.domino.keep.cache.NameLookupCache lookupCache) |
com.hcl.domino.keep.KeepFactory |
setMockLoader(com.hcl.domino.keep.ConfigLoader mockLoader) |
MockKeepFactory |
setSession(com.hcl.domino.keep.dbrequests.KeepJnxSession s) |
public MockKeepFactory(io.vertx.core.Vertx vertx)
vertx
- public MockKeepFactory allowDominoLogin(boolean allow)
Switch on/off Domino login
allow
- public MockKeepFactory allowLocalUsers(boolean allow)
Switch on/off Keep local users
allow
- public com.hcl.domino.DominoClient authenticatedDominoClient(java.lang.String userName, java.lang.String password)
authenticatedDominoClient
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.dbrequests.identity.AuthLogin getAuthLogin()
getAuthLogin
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.ConfigLoader getConfigLoader(io.vertx.core.Vertx vertxx, io.vertx.core.eventbus.EventBus eventBus, com.hcl.domino.keep.ConfigLoader.LoaderType loaderType)
getConfigLoader
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.cache.DesignCache getDesignCache()
getDesignCache
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.DominoProcess getDominoProcess()
getDominoProcess
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.security.JwtManager getJwtManager()
getJwtManager
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.config.KeepConfig getKeepConfig()
getKeepConfig
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.dbrequests.KeepJnxSession getKeepJnxSession(com.hcl.domino.keep.security.KeepUser user)
getKeepJnxSession
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.saml.KeepSAML getKeepSAML()
getKeepSAML
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.metrics.KeepStatistics getKeepStatistics()
getKeepStatistics
in interface com.hcl.domino.keep.KeepFactory
public io.vertx.ext.auth.ldap.LdapAuthentication getLdapAuthentication(io.vertx.core.Vertx vertx2, io.vertx.ext.auth.ldap.LdapAuthenticationOptions options)
getLdapAuthentication
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.keep.cache.NameLookupCache getNameCache()
getNameCache
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.DominoProcess.DominoThreadContext getThreadContext()
getThreadContext
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.DominoProcess.DominoThreadContext getThreadContext(com.hcl.domino.DominoProcess process)
getThreadContext
in interface com.hcl.domino.keep.KeepFactory
public com.hcl.domino.DominoClient namedDominoClient(java.lang.String userName)
namedDominoClient
in interface com.hcl.domino.keep.KeepFactory
public MockKeepFactory setAuthLogin(com.hcl.domino.keep.dbrequests.identity.AuthLogin al)
al
- AuthLogin (e.g. Mock)public void setFailLdap(boolean failLdap)
Set failLdap for Testing ldap authentication fail
failLdap
- public MockKeepFactory setJwtManager(com.hcl.domino.keep.security.JwtManager manager)
set/overwrite JWT Manager for testing
manager
- public void setLookupCache(com.hcl.domino.keep.cache.NameLookupCache lookupCache)
lookupCache
- overwrite the lookup cachepublic com.hcl.domino.keep.KeepFactory setMockLoader(com.hcl.domino.keep.ConfigLoader mockLoader)
mockLoader
- the mockLoader to setpublic MockKeepFactory setSession(com.hcl.domino.keep.dbrequests.KeepJnxSession s)
s
- KeepSession