Class AccountConverter

java.lang.Object
org.stellar.sdk.AccountConverter

public class AccountConverter extends Object
AccountConverter is a helper class that can be used to encode and decode muxed accounts.
See Also:
  • Method Details

    • enableMuxed

      public static AccountConverter enableMuxed()
      Returns an AccountConverter which supports muxed accounts.
    • disableMuxed

      public static AccountConverter disableMuxed()
      Returns an AccountConverter which does not support muxed accounts. When trying to encode or decode a muxed account the AccountConverter will first convert the muxed account into an ED25519 account id.
    • encode

      public MuxedAccount encode(String account)
      Encodes an account string into its XDR MuxedAccount representation.
      Parameters:
      account - the string representation of an account
      Returns:
      the XDR MuxedAccount representation of an account
    • decode

      public String decode(MuxedAccount account)
      Decodes an XDR MuxedAccount into its string representation.
      Parameters:
      account - the XDR MuxedAccount representation of an account
      Returns:
      the string representation of an account
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object