org.lastbamboo.common.turn.client.TurnClientConfig Maven / Gradle / Ivy
package org.lastbamboo.common.turn.client;
/**
* Simple class for storing configuration. We cheat here and make
* this all static to avoid the overhead of integrating dependency
* injection that could collide with versions of libraries programs including
* this library are using.
*/
public class TurnClientConfig {
private static boolean useDnsSec = false;
private TurnClientConfig(){}
/**
* Sets whether or not to use DNSSEC to request signed records when
* performing DNS lookups and verifying those records if they exist.
*
* @param useDnsSec Whether or not to use DNSSEC.
*/
public static void setUseDnsSec(final boolean useDnsSec) {
TurnClientConfig.useDnsSec = useDnsSec;
}
/**
* Whether or not we're configured to use DNSSEC for lookups.
*
* @return true
if configured to use DNSSEC, otherwise
* false
.
*/
public static boolean isUseDnsSec() {
return useDnsSec;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy