
org.lastbamboo.common.sip.client.SipClientConfig Maven / Gradle / Ivy
The newest version!
package org.lastbamboo.common.sip.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 SipClientConfig {
private static boolean useDnsSec = false;
private SipClientConfig(){}
/**
* 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) {
SipClientConfig.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