/** * Creates a new CAS authentication provider module which configures * injection for the CASAuthenticationProvider. * * @param authProvider * The AuthenticationProvider for which injection is being configured. * * @throws GuacamoleException * If an error occurs while retrieving the Guacamole server * environment. */ public CASAuthenticationProviderModule(AuthenticationProvider authProvider) throws GuacamoleException { // Get local environment this.environment = new LocalEnvironment(); // Store associated auth provider this.authProvider = authProvider; }
@Override public <Type> Type getProperty(GuacamoleProperty<Type> property, Type defaultValue) throws GuacamoleException { Type value = getProperty(property); if (value == null) return defaultValue; return value; }
guacHome = findGuacamoleHome(); logger.info("GUACAMOLE_HOME is \"{}\".", guacHome.getAbsolutePath()); availableProtocols = readProtocols(); environmentPropertiesEnabled = environmentPropertiesEnabled(properties);
File protocol_directory = new File(getGuacamoleHome(), "protocols"); ProtocolInfo protocol = readProtocol(stream); stream.close(); protocols.put(protocol, readProtocol(stream));
/** * Creates a new Duo authentication provider module which configures * injection for the DuoAuthenticationProvider. * * @param authProvider * The AuthenticationProvider for which injection is being configured. * * @throws GuacamoleException * If an error occurs while retrieving the Guacamole server * environment. */ public DuoAuthenticationProviderModule(AuthenticationProvider authProvider) throws GuacamoleException { // Get local environment this.environment = new LocalEnvironment(); // Store associated auth provider this.authProvider = authProvider; }
@Override public GuacamoleProxyConfiguration getDefaultGuacamoleProxyConfiguration() throws GuacamoleException { // Parse guacd hostname/port/ssl properties return new GuacamoleProxyConfiguration( getProperty(Environment.GUACD_HOSTNAME, DEFAULT_GUACD_HOSTNAME), getProperty(Environment.GUACD_PORT, DEFAULT_GUACD_PORT), getProperty(Environment.GUACD_SSL, DEFAULT_GUACD_SSL) ); }
/** * Creates a new OpenID authentication provider module which configures * injection for the OpenIDAuthenticationProvider. * * @param authProvider * The AuthenticationProvider for which injection is being configured. * * @throws GuacamoleException * If an error occurs while retrieving the Guacamole server * environment. */ public OpenIDAuthenticationProviderModule(AuthenticationProvider authProvider) throws GuacamoleException { // Get local environment this.environment = new LocalEnvironment(); // Store associated auth provider this.authProvider = authProvider; }
@Override public <Type> Type getRequiredProperty(GuacamoleProperty<Type> property) throws GuacamoleException { Type value = getProperty(property); if (value == null) throw new GuacamoleServerException("Property " + property.getName() + " is required."); return value; }
/** * Creates a new HTTP header authentication provider module which configures * injection for the HTTPHeaderAuthenticationProvider. * * @param authProvider * The AuthenticationProvider for which injection is being configured. * * @throws GuacamoleException * If an error occurs while retrieving the Guacamole server * environment. */ public HTTPHeaderAuthenticationProviderModule(AuthenticationProvider authProvider) throws GuacamoleException { // Get local environment this.environment = new LocalEnvironment(); // Store associated auth provider this.authProvider = authProvider; }
/** * Creates a new TOTP authentication provider module which configures * injection for the TOTPAuthenticationProvider. * * @param authProvider * The AuthenticationProvider for which injection is being configured. * * @throws GuacamoleException * If an error occurs while retrieving the Guacamole server * environment. */ public TOTPAuthenticationProviderModule(AuthenticationProvider authProvider) throws GuacamoleException { // Get local environment this.environment = new LocalEnvironment(); // Store associated auth provider this.authProvider = authProvider; }
/** * Creates a new LDAP authentication provider module which configures * injection for the LDAPAuthenticationProvider. * * @param authProvider * The AuthenticationProvider for which injection is being configured. * * @throws GuacamoleException * If an error occurs while retrieving the Guacamole server * environment. */ public LDAPAuthenticationProviderModule(AuthenticationProvider authProvider) throws GuacamoleException { // Get local environment this.environment = new LocalEnvironment(); // Store associated auth provider this.authProvider = authProvider; }
Environment environment = new LocalEnvironment(); GuacamoleProxyConfiguration proxyConfig = environment.getDefaultGuacamoleProxyConfiguration();