Package org.stellar.sdk.spi
Interface SdkProvider
public interface SdkProvider
An abstract class for service providers that provide implementations of the SDK.
Note: we offer an Android specific implementation of this class, see Java Stellar SDK Android SPI.
- See Also:
-
Method Details
-
createBase64
Creates aBase64
implementation that will be used by the SDK.Note: Default implementation will use the JDK's
Base64
, and it only works with Android API 26 and above, if you need to support older versions of Android you need to provide your own implementation, this is an example for reference.- Returns:
- a
Base64
implementation, if returns null the SDK will use the default implementation.
-
createBase32
Creates aBase32
implementation that will be used by the SDK.Note: Default implementation will use the Apache Commons Codec's
Base32
, and it only works with Android API 28 and above, if you need to support older versions of Android you need to provide your own implementation, this is an example for reference.- Returns:
- a
Base32
implementation, if returns null the SDK will use the default implementation.
-