Package org.stellar.sdk.xdr
Class SorobanAuthorizationEntry
java.lang.Object
org.stellar.sdk.xdr.SorobanAuthorizationEntry
- All Implemented Interfaces:
XdrElement
SorobanAuthorizationEntry's original definition in the XDR file is:
struct SorobanAuthorizationEntry
{
SorobanCredentials credentials;
SorobanAuthorizedInvocation rootInvocation;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSorobanAuthorizationEntry(SorobanCredentials credentials, SorobanAuthorizedInvocation rootInvocation) Creates a newSorobanAuthorizationEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanAuthorizationEntrydecode(XdrDataInputStream stream) static SorobanAuthorizationEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SorobanAuthorizationEntrystatic SorobanAuthorizationEntryfromXdrBase64(String xdr) static SorobanAuthorizationEntryfromXdrByteArray(byte[] xdr) Value of thecredentialsfield.Value of therootInvocationfield.inthashCode()voidsetCredentials(SorobanCredentials credentials) Value of thecredentialsfield.voidsetRootInvocation(SorobanAuthorizedInvocation rootInvocation) Value of therootInvocationfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanAuthorizationEntry
public SorobanAuthorizationEntry() -
SorobanAuthorizationEntry
public SorobanAuthorizationEntry(SorobanCredentials credentials, SorobanAuthorizedInvocation rootInvocation) Creates a newSorobanAuthorizationEntryinstance.- Parameters:
credentials- thecredentialsfield valuerootInvocation- therootInvocationfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static SorobanAuthorizationEntry decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getCredentials
Value of thecredentialsfield.- Returns:
- the
credentialsfield value
-
getRootInvocation
Value of therootInvocationfield.- Returns:
- the
rootInvocationfield value
-
setCredentials
Value of thecredentialsfield.- Parameters:
credentials- thecredentialsfield value
-
setRootInvocation
Value of therootInvocationfield.- Parameters:
rootInvocation- therootInvocationfield value
-
equals
-
hashCode
public int hashCode() -
toString
-