Package org.stellar.sdk
Class AccountConverter
java.lang.Object
org.stellar.sdk.AccountConverter
AccountConverter is a helper class that can be used to encode and decode muxed accounts.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecode(MuxedAccount account) Decodes an XDR MuxedAccount into its string representation.static AccountConverterReturns an AccountConverter which does not support muxed accounts.static AccountConverterReturns an AccountConverter which supports muxed accounts.Encodes an account string into its XDR MuxedAccount representation.booleaninthashCode()
-
Method Details
-
enableMuxed
Returns an AccountConverter which supports muxed accounts. -
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
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
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
-
hashCode
public int hashCode()
-