Package org.stellar.sdk.xdr
Class AuthenticatedMessage.AuthenticatedMessageV0
java.lang.Object
org.stellar.sdk.xdr.AuthenticatedMessage.AuthenticatedMessageV0
- All Implemented Interfaces:
XdrElement
- Enclosing class:
AuthenticatedMessage
public static class AuthenticatedMessage.AuthenticatedMessageV0
extends Object
implements XdrElement
AuthenticatedMessageV0's original definition in the XDR file is:
struct
{
uint64 sequence;
StellarMessage message;
HmacSha256Mac mac;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatedMessageV0(Uint64 sequence, StellarMessage message, HmacSha256Mac mac) Creates a newAuthenticatedMessageV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) getMac()Value of themacfield.Value of themessagefield.Value of thesequencefield.inthashCode()voidsetMac(HmacSha256Mac mac) Value of themacfield.voidsetMessage(StellarMessage message) Value of themessagefield.voidsetSequence(Uint64 sequence) Value of thesequencefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AuthenticatedMessageV0
public AuthenticatedMessageV0() -
AuthenticatedMessageV0
Creates a newAuthenticatedMessageV0instance.- Parameters:
sequence- thesequencefield valuemessage- themessagefield valuemac- themacfield 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 AuthenticatedMessage.AuthenticatedMessageV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static AuthenticatedMessage.AuthenticatedMessageV0 decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static AuthenticatedMessage.AuthenticatedMessageV0 fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static AuthenticatedMessage.AuthenticatedMessageV0 fromXdrByteArray(byte[] xdr) throws IOException - 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
-
getSequence
Value of thesequencefield.- Returns:
- the
sequencefield value
-
getMessage
Value of themessagefield.- Returns:
- the
messagefield value
-
getMac
Value of themacfield.- Returns:
- the
macfield value
-
setSequence
Value of thesequencefield.- Parameters:
sequence- thesequencefield value
-
setMessage
Value of themessagefield.- Parameters:
message- themessagefield value
-
setMac
Value of themacfield.- Parameters:
mac- themacfield value
-
equals
-
hashCode
public int hashCode() -
toString
-