Package org.stellar.sdk.xdr
Class SorobanCredentials
java.lang.Object
org.stellar.sdk.xdr.SorobanCredentials
- All Implemented Interfaces:
XdrElement
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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSorobanCredentials(SorobanCredentialsType discriminant, SorobanAddressCredentials address) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanCredentialsdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SorobanCredentialsfromXdrBase64(String xdr) static SorobanCredentialsfromXdrByteArray(byte[] xdr) inthashCode()voidsetAddress(SorobanAddressCredentials address) voidsetDiscriminant(SorobanCredentialsType discriminant) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanCredentials
public SorobanCredentials() -
SorobanCredentials
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAddress
-
setDiscriminant
-
setAddress
-
equals
-
hashCode
public int hashCode() -
toString
-