Package org.briarproject.onionwrapper
Interface CircumventionProvider
@ThreadSafe
@NotNullByDefault
public interface CircumventionProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Countries where default obfs4 bridges should be used.static final String[]Countries where meek bridges should be used.static final String[]Countries where non-default obfs4 bridges should be used.static final String[]Countries where snowflake bridges should be used.static final String[]Countries where vanilla bridges should be used. -
Method Summary
Modifier and TypeMethodDescriptiongetBridges(CircumventionProvider.BridgeType type, String countryCode) Returns bridges of the given type that are usable in the given country.getSuitableBridgeTypes(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(String countryCode) Returns true if bridges should be used by default in the given country.
-
Field Details
-
COUNTRIES_DEFAULT_OBFS4
Countries where default obfs4 bridges should be used. -
COUNTRIES_NON_DEFAULT_OBFS4
Countries where non-default obfs4 bridges should be used. -
COUNTRIES_VANILLA
Countries where vanilla bridges should be used. -
COUNTRIES_MEEK
Countries where meek bridges should be used. -
COUNTRIES_SNOWFLAKE
Countries where snowflake bridges should be used.
-
-
Method Details
-
shouldUseBridges
Returns true if bridges should be used by default in the given country. -
getSuitableBridgeTypes
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
Returns bridges of the given type that are usable in the given country.
-