Package org.stellar.sdk
Class AccountConverter
- java.lang.Object
-
- org.stellar.sdk.AccountConverter
-
public class AccountConverter extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
decode(org.stellar.sdk.xdr.MuxedAccount account)
Decodes an XDR MuxedAccount into its string representation.static AccountConverter
disableMuxed()
Returns an AccountConverter which does not support muxed accounts.static AccountConverter
enableMuxed()
Returns an AccountConverter which supports muxed accounts.org.stellar.sdk.xdr.MuxedAccount
encode(java.lang.String account)
Encodes an account string into its XDR MuxedAccount representation.
-
-
-
Method Detail
-
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 org.stellar.sdk.xdr.MuxedAccount encode(java.lang.String account)
Encodes an account string into its XDR MuxedAccount representation.- Parameters:
account
- the string representation of an account
-
decode
public java.lang.String decode(org.stellar.sdk.xdr.MuxedAccount account)
Decodes an XDR MuxedAccount into its string representation.- Parameters:
account
- the XDR MuxedAccount representation of an account
-
-