Class OpenUnisonConfigManager
java.lang.Object
com.tremolosecurity.config.util.UnisonConfigManagerImpl
com.tremolosecurity.openunison.OpenUnisonConfigManager
- All Implemented Interfaces:
ConfigManager, UnisonConfigManager
-
Field Summary
Fields inherited from class UnisonConfigManagerImpl
con, ctx, kmf, ks, myvdModifier and TypeFieldDescriptionprotected MyVDConnectionprotected jakarta.servlet.ServletContextprotected KeyManagerFactoryprotected KeyStoreprotected net.sourceforge.myvd.server.ServerCore -
Constructor Summary
ConstructorsConstructorDescriptionOpenUnisonConfigManager(String configXML, jakarta.servlet.ServletContext ctx, String name, jakarta.servlet.FilterConfig filterCfg) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the open port, as seen by a client.intReturns the secure port, as seen by a client.net.sourceforge.myvd.server.ServerCoreintReturns the open port this service is listening onintReturns the secure port this service is listening onbooleanTrue if all connections in plain text are to be redirected to encrypted text (HTTP/S only)voidloadKeystore(String path, String myVdPath) voidjakarta.xml.bind.JAXBElement<TremoloType> loadUnisonConfiguration(jakarta.xml.bind.Unmarshaller unmarshaller) voidMethods inherited from class UnisonConfigManagerImpl
addApplication, addAuthenticationMechanism, addCustomerAuthorization, addPrivateKey, addReloadNotifier, addResultGroup, addThread, buildHttpConfig, clearThreads, createAnonUser, deleteApp, findURL, getApp, getAuthChains, getAuthFailChain, getAuthFailMechanism, getAuthFormsPath, getAuthIdPPath, getAuthManager, getAuthMech, getAuthMechs, getAuthPath, getCertificate, getCfg, getConfigXmlPath, getContext, getContextPath, getCustomAuthorizations, getErrorPages, getGlobalHttpClientConfig, getHttpClientSocketRegistry, getKeyManagerFactory, getKeyStore, getKeyVersion, getMyVD, getNotificationsMananager, getPaasRoleAttribute, getPaasUserPrinicipalAttribute, getPrivateKey, getProvisioningEngine, getResultGroup, getSecretKey, getSSLContext, getTrustManagerFactory, initialize, initializeUrls, loadAuthMechs, loadFilters, notifyReload, reloadConfig, removeAuthenticationMechanism, removeCustomAuthorization, removeResultGroup, setKeyVersion, setPaasRoleAttribute, setPaasUserPrinicipalAttributeModifier and TypeMethodDescriptionvoidvoidvoidaddPrivateKey(String alias, X509Certificate pub, PrivateKey priv) voidaddReloadNotifier(ReloadNotification notifier) Provide notifications to classes when the configuration is reloadedvoidvoidAdds a thread to the managed list of threads.voidvoidStop all threads and clear them from UnisonvoidcreateAnonUser(jakarta.servlet.http.HttpSession sharedSession) Resets the session's state to an anonymous uservoidFinds an application configuration based on a URLReturns an application configuration based on the application's nameReturns a map of Authentication Chain configurations based on the name of the chainReturns where Unison stores JSP pages for authentication (typically /auth/forms).Returns the path where Unison identity providers are configured.getAuthMech(String uri) Retrieves an authentication mechanism implementation based on the URI of a requestReturns a map of all configured authentication mechanism configurationsReturns the path to Unison's "auth" directory.getCertificate(String alias) Retrieves a certificate from Unison's internal certificate storegetCfg()Returns the un-marshaled XML configurationReturns the full path to Unison's XML configurationjakarta.servlet.ServletContextReturns Unison's servlet contextReturns the context path for UnisonReturns a map of custom authorization implementations and namesReturns the error pagesorg.apache.http.client.config.RequestConfigReturns the global htto client configurationorg.apache.http.config.Registry<org.apache.http.conn.socket.ConnectionSocketFactory> Returns the protocol registry for the http clientReturns Unison's Key Management FactoryReturns Unison's key storeintgetKeyVersion(String name) getMyVD()Return the internal MyVD connection, can be used for searches and authenticationWhen Unison is embedded, returns the name of the user attribute that will act as the roles identifier.When Unison is embedded, returns the name of the user attribute that will act as the user identifier.getPrivateKey(String alias) Returns a private key from Unison's internal key storeRetrieves the Unison provisioning subsystemgetResultGroup(String name) Returns a Result Group configuration based on its namegetSecretKey(String alias) Returns a secret key from Unison's key storeReturns the SSLContextvoidinitialize(String name) Initializes a Unison configurationvoidinitializeUrls(List<UrlHolder> holders) voidLoads all authentication mechanisms, DO NOT CALLvoidLoads all filter configurations, DO NOT CALLvoidNotify listeners that the configuration is bring reloadedvoidReloads all configuration items, clears all threadsvoidvoidremoveCustomAuthorization(String azName) voidremoveResultGroup(ResultGroupType rgtToRemove) voidsetKeyVersion(String name, int version) voidsetPaasRoleAttribute(String paasRoleAttribute) When Unison is embedded, sets the name of the user attribute that will act as the roles identifier.voidsetPaasUserPrinicipalAttribute(String paasUserPrinicipalAttribute) When Unison is embedded, sets the name of the user attribute that will act as the user identifier.
-
Constructor Details
-
OpenUnisonConfigManager
-
-
Method Details
-
loadUnisonConfiguration
public jakarta.xml.bind.JAXBElement<TremoloType> loadUnisonConfiguration(jakarta.xml.bind.Unmarshaller unmarshaller) throws Exception - Specified by:
loadUnisonConfigurationin classUnisonConfigManagerImpl- Throws:
Exception
-
loadKeystore
- Specified by:
loadKeystorein classUnisonConfigManagerImpl- Throws:
Exception
-
isForceToSSL
public boolean isForceToSSL()Description copied from interface:ConfigManagerTrue if all connections in plain text are to be redirected to encrypted text (HTTP/S only)- Specified by:
isForceToSSLin interfaceConfigManager- Specified by:
isForceToSSLin interfaceUnisonConfigManager- Specified by:
isForceToSSLin classUnisonConfigManagerImpl- Returns:
-
getOpenPort
public int getOpenPort()Description copied from interface:ConfigManagerReturns the open port this service is listening on- Specified by:
getOpenPortin interfaceConfigManager- Specified by:
getOpenPortin interfaceUnisonConfigManager- Specified by:
getOpenPortin classUnisonConfigManagerImpl- Returns:
-
getSecurePort
public int getSecurePort()Description copied from interface:ConfigManagerReturns the secure port this service is listening on- Specified by:
getSecurePortin interfaceConfigManager- Specified by:
getSecurePortin interfaceUnisonConfigManager- Specified by:
getSecurePortin classUnisonConfigManagerImpl- Returns:
-
getExternalOpenPort
public int getExternalOpenPort()Description copied from interface:ConfigManagerReturns the open port, as seen by a client. For instance if Unison is running on port 8080 but there is a firewall port forwarding from port 80 this would return 80- Specified by:
getExternalOpenPortin interfaceConfigManager- Specified by:
getExternalOpenPortin interfaceUnisonConfigManager- Specified by:
getExternalOpenPortin classUnisonConfigManagerImpl- Returns:
-
getExternalSecurePort
public int getExternalSecurePort()Description copied from interface:ConfigManagerReturns the secure port, as seen by a client. For instance if Unison is running on port 8443 but there is a firewall port forwarding from port 443 this would return 443- Specified by:
getExternalSecurePortin interfaceConfigManager- Specified by:
getExternalSecurePortin interfaceUnisonConfigManager- Specified by:
getExternalSecurePortin classUnisonConfigManagerImpl- Returns:
-
loadMyVD
-
postInitialize
public void postInitialize()- Specified by:
postInitializein classUnisonConfigManagerImpl
-
getMyVDServerCore
public net.sourceforge.myvd.server.ServerCore getMyVDServerCore()
-