public class AuthenticatedMessage extends java.lang.Object implements XdrElement
union AuthenticatedMessage switch (uint32 v) { case 0: struct { uint64 sequence; StellarMessage message; HmacSha256Mac mac; } v0; };
Modifier and Type | Class and Description |
---|---|
static class |
AuthenticatedMessage.AuthenticatedMessageBuilder |
static class |
AuthenticatedMessage.AuthenticatedMessageV0
AuthenticatedMessageV0's original definition in the XDR file is:
|
Constructor and Description |
---|
AuthenticatedMessage() |
AuthenticatedMessage(Uint32 discriminant,
AuthenticatedMessage.AuthenticatedMessageV0 v0) |
Modifier and Type | Method and Description |
---|---|
static AuthenticatedMessage.AuthenticatedMessageBuilder |
builder() |
static AuthenticatedMessage |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static AuthenticatedMessage |
fromXdrBase64(java.lang.String xdr) |
static AuthenticatedMessage |
fromXdrByteArray(byte[] xdr) |
Uint32 |
getDiscriminant() |
AuthenticatedMessage.AuthenticatedMessageV0 |
getV0() |
int |
hashCode() |
void |
setDiscriminant(Uint32 discriminant) |
void |
setV0(AuthenticatedMessage.AuthenticatedMessageV0 v0) |
AuthenticatedMessage.AuthenticatedMessageBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public AuthenticatedMessage()
public AuthenticatedMessage(Uint32 discriminant, AuthenticatedMessage.AuthenticatedMessageV0 v0)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static AuthenticatedMessage decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static AuthenticatedMessage fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static AuthenticatedMessage fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static AuthenticatedMessage.AuthenticatedMessageBuilder builder()
public AuthenticatedMessage.AuthenticatedMessageBuilder toBuilder()
public Uint32 getDiscriminant()
public AuthenticatedMessage.AuthenticatedMessageV0 getV0()
public void setDiscriminant(Uint32 discriminant)
public void setV0(AuthenticatedMessage.AuthenticatedMessageV0 v0)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object