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 Summary

    Modifier and Type
    Method
    Description
    default Base32
    Creates a Base32 implementation that will be used by the SDK.
    default Base64
    Creates a Base64 implementation that will be used by the SDK.
  • Method Details

    • createBase64

      default Base64 createBase64()
      Creates a Base64 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

      default Base32 createBase32()
      Creates a Base32 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.