Package org.briarproject.onionwrapper
Interface CircumventionProvider
-
@ThreadSafe @NotNullByDefault public interface CircumventionProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCircumventionProvider.BridgeType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]COUNTRIES_DEFAULT_OBFS4Countries where default obfs4 bridges should be used.static java.lang.String[]COUNTRIES_MEEKCountries where meek bridges should be used.static java.lang.String[]COUNTRIES_NON_DEFAULT_OBFS4Countries where non-default obfs4 bridges should be used.static java.lang.String[]COUNTRIES_SNOWFLAKECountries where snowflake bridges should be used.static java.lang.String[]COUNTRIES_VANILLACountries where vanilla bridges should be used.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>getBridges(CircumventionProvider.BridgeType type, java.lang.String countryCode)Returns bridges of the given type that are usable in the given country.java.util.List<CircumventionProvider.BridgeType>getSuitableBridgeTypes(java.lang.String countryCode)Returns the types of bridge connection that are suitable for the given country, orCircumventionProvider.BridgeType.DEFAULT_OBFS4andCircumventionProvider.BridgeType.VANILLAif we don't have any specific recommendations for the given country.booleanshouldUseBridges(java.lang.String countryCode)Returns true if bridges should be used by default in the given country.
-
-
-
Field Detail
-
COUNTRIES_DEFAULT_OBFS4
static final java.lang.String[] COUNTRIES_DEFAULT_OBFS4
Countries where default obfs4 bridges should be used.
-
COUNTRIES_NON_DEFAULT_OBFS4
static final java.lang.String[] COUNTRIES_NON_DEFAULT_OBFS4
Countries where non-default obfs4 bridges should be used.
-
COUNTRIES_VANILLA
static final java.lang.String[] COUNTRIES_VANILLA
Countries where vanilla bridges should be used.
-
COUNTRIES_MEEK
static final java.lang.String[] COUNTRIES_MEEK
Countries where meek bridges should be used.
-
COUNTRIES_SNOWFLAKE
static final java.lang.String[] COUNTRIES_SNOWFLAKE
Countries where snowflake bridges should be used.
-
-
Method Detail
-
shouldUseBridges
boolean shouldUseBridges(java.lang.String countryCode)
Returns true if bridges should be used by default in the given country.
-
getSuitableBridgeTypes
java.util.List<CircumventionProvider.BridgeType> getSuitableBridgeTypes(java.lang.String countryCode)
Returns the types of bridge connection that are suitable for the given country, orCircumventionProvider.BridgeType.DEFAULT_OBFS4andCircumventionProvider.BridgeType.VANILLAif we don't have any specific recommendations for the given country.
-
getBridges
java.util.List<java.lang.String> getBridges(CircumventionProvider.BridgeType type, java.lang.String countryCode)
Returns bridges of the given type that are usable in the given country.
-
-