GUACAMOLE-197: Add configuration properties for EAP-related authentication protocols.

This commit is contained in:
Nick Couchman
2017-02-07 22:35:59 -05:00
committed by Nick Couchman
parent 86d9a8fb88
commit 5d83a5f24b
2 changed files with 113 additions and 0 deletions

View File

@@ -164,4 +164,60 @@ public class ConfigurationService {
);
}
public String getRadiusCAFile() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_CA_FILE,
"radius-ca.pem"
);
}
public String getRadiusKeyFile() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_KEY_FILE,
"radius-key.pem"
);
}
public String getRadiusCAPassword() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_CA_PASSWORD,
null
);
}
public String getRadiusCAType() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_CA_TYPE,
null
);
}
public String getRadiusKeyPassword() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_KEY_PASSWORD,
null
);
}
public String getRadiusKeyType() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_KEY_PASSWORD,
null
);
}
public Boolean getRadiusTrustAll() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_TRUST_ALL,
false
);
}
public String getRadiusEAPTTLSInnerProtocol() throws GuacamoleException {
return environment.getProperty(
RadiusGuacamoleProperties.RADIUS_EAP_TTLS_INNER_PROTOCOL,
null
);
}
}

View File

@@ -19,6 +19,7 @@
package org.apache.guacamole.auth.radius;
import org.apache.guacamole.properties.BooleanGuacamoleProperty;
import org.apache.guacamole.properties.IntegerGuacamoleProperty;
import org.apache.guacamole.properties.StringGuacamoleProperty;
@@ -108,5 +109,61 @@ public class RadiusGuacamoleProperties {
};
public static final StringGuacamoleProperty RADIUS_CA_FILE = new StringGuacamoleProperty() {
@Override
public String getName() { return "radius-ca-file"; }
};
public static final StringGuacamoleProperty RADIUS_CA_TYPE = new StringGuacamoleProperty() {
@Override
public String getName() { return "radius-ca-type"; }
};
public static final StringGuacamoleProperty RADIUS_CA_PASSWORD = new StringGuacamoleProperty() {
@Override
public String getName() { return "radius-ca-password"; }
};
public static final StringGuacamoleProperty RADIUS_KEY_FILE = new StringGuacamoleProperty() {
@Override
public String getName() { return "radius-key-file"; }
};
public static final StringGuacamoleProperty RADIUS_KEY_TYPE = new StringGuacamoleProperty() {
@Override
public String getName() { return "radius-key-type"; }
};
public static final StringGuacamoleProperty RADIUS_KEY_PASSWORD = new StringGuacamoleProperty() {
@Override
public String getName() { return "radius-key-password"; }
};
public static final BooleanGuacamoleProperty RADIUS_TRUST_ALL = new BooleanGuacamoleProperty() {
@Override
public String getName() { return "radius-trust-all"; }
};
public static final StringGuacamoleProperty RADIUS_EAP_TTLS_INNER_PROTOCOL = new StringGuacamoleProperty() {
@Override
public String getName() { return "radius-eap-ttls-inner-protocol"; }
};
}