Package org.stellar.sdk.xdr
Class SorobanAddressCredentials
java.lang.Object
org.stellar.sdk.xdr.SorobanAddressCredentials
- All Implemented Interfaces:
XdrElement
SorobanAddressCredentials's original definition in the XDR file is:
struct SorobanAddressCredentials
{
SCAddress address;
int64 nonce;
uint32 signatureExpirationLedger;
SCVal signature;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSorobanAddressCredentials(SCAddress address, Int64 nonce, Uint32 signatureExpirationLedger, SCVal signature) Creates a newSorobanAddressCredentialsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanAddressCredentialsdecode(XdrDataInputStream stream) static SorobanAddressCredentialsdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SorobanAddressCredentialsstatic SorobanAddressCredentialsfromXdrBase64(String xdr) static SorobanAddressCredentialsfromXdrByteArray(byte[] xdr) Value of theaddressfield.getNonce()Value of thenoncefield.Value of thesignaturefield.Value of thesignatureExpirationLedgerfield.inthashCode()voidsetAddress(SCAddress address) Value of theaddressfield.voidValue of thenoncefield.voidsetSignature(SCVal signature) Value of thesignaturefield.voidsetSignatureExpirationLedger(Uint32 signatureExpirationLedger) Value of thesignatureExpirationLedgerfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanAddressCredentials
public SorobanAddressCredentials() -
SorobanAddressCredentials
public SorobanAddressCredentials(SCAddress address, Int64 nonce, Uint32 signatureExpirationLedger, SCVal signature) Creates a newSorobanAddressCredentialsinstance.- Parameters:
address- theaddressfield valuenonce- thenoncefield valuesignatureExpirationLedger- thesignatureExpirationLedgerfield valuesignature- thesignaturefield 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 SorobanAddressCredentials 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
-
getAddress
Value of theaddressfield.- Returns:
- the
addressfield value
-
getNonce
Value of thenoncefield.- Returns:
- the
noncefield value
-
getSignatureExpirationLedger
Value of thesignatureExpirationLedgerfield.- Returns:
- the
signatureExpirationLedgerfield value
-
getSignature
Value of thesignaturefield.- Returns:
- the
signaturefield value
-
setAddress
Value of theaddressfield.- Parameters:
address- theaddressfield value
-
setNonce
Value of thenoncefield.- Parameters:
nonce- thenoncefield value
-
setSignatureExpirationLedger
Value of thesignatureExpirationLedgerfield.- Parameters:
signatureExpirationLedger- thesignatureExpirationLedgerfield value
-
setSignature
Value of thesignaturefield.- Parameters:
signature- thesignaturefield value
-
equals
-
hashCode
public int hashCode() -
toString
-