Package org.stellar.sdk.xdr
Class SorobanCredentials
java.lang.Object
org.stellar.sdk.xdr.SorobanCredentials
SorobanCredentials's original definition in the XDR file is:
union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSorobanCredentials
(SorobanCredentialsType discriminant, SorobanAddressCredentials address) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SorobanCredentials
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SorobanCredentials
fromXdrBase64
(String xdr) static SorobanCredentials
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAddress
(SorobanAddressCredentials address) void
setDiscriminant
(SorobanCredentialsType discriminant) toString()
default String
default byte[]
-
Constructor Details
-
SorobanCredentials
public SorobanCredentials() -
SorobanCredentials
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAddress
-
setDiscriminant
-
setAddress
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-