public class SignerKey extends java.lang.Object implements XdrElement
union SignerKey switch (SignerKeyType type) { case SIGNER_KEY_TYPE_ED25519: uint256 ed25519; case SIGNER_KEY_TYPE_PRE_AUTH_TX: /* SHA-256 Hash of TransactionSignaturePayload structure */ uint256 preAuthTx; case SIGNER_KEY_TYPE_HASH_X: /* Hash of random 256 bit preimage X */ uint256 hashX; case SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD: struct { /* Public key that must sign the payload. */ uint256 ed25519; /* Payload to be raw signed by ed25519. */ opaque payload<64>; } ed25519SignedPayload; };
Modifier and Type | Class and Description |
---|---|
static class |
SignerKey.SignerKeyBuilder |
static class |
SignerKey.SignerKeyEd25519SignedPayload
SignerKeyEd25519SignedPayload's original definition in the XDR file is:
|
Constructor and Description |
---|
SignerKey() |
SignerKey(SignerKeyType discriminant,
Uint256 ed25519,
Uint256 preAuthTx,
Uint256 hashX,
SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload) |
Modifier and Type | Method and Description |
---|---|
static SignerKey.SignerKeyBuilder |
builder() |
static SignerKey |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SignerKey |
fromXdrBase64(java.lang.String xdr) |
static SignerKey |
fromXdrByteArray(byte[] xdr) |
SignerKeyType |
getDiscriminant() |
Uint256 |
getEd25519() |
SignerKey.SignerKeyEd25519SignedPayload |
getEd25519SignedPayload() |
Uint256 |
getHashX() |
Uint256 |
getPreAuthTx() |
int |
hashCode() |
void |
setDiscriminant(SignerKeyType discriminant) |
void |
setEd25519(Uint256 ed25519) |
void |
setEd25519SignedPayload(SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload) |
void |
setHashX(Uint256 hashX) |
void |
setPreAuthTx(Uint256 preAuthTx) |
SignerKey.SignerKeyBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public SignerKey()
public SignerKey(SignerKeyType discriminant, Uint256 ed25519, Uint256 preAuthTx, Uint256 hashX, SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static SignerKey decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static SignerKey fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SignerKey fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static SignerKey.SignerKeyBuilder builder()
public SignerKey.SignerKeyBuilder toBuilder()
public SignerKeyType getDiscriminant()
public Uint256 getEd25519()
public Uint256 getPreAuthTx()
public Uint256 getHashX()
public SignerKey.SignerKeyEd25519SignedPayload getEd25519SignedPayload()
public void setDiscriminant(SignerKeyType discriminant)
public void setEd25519(Uint256 ed25519)
public void setPreAuthTx(Uint256 preAuthTx)
public void setHashX(Uint256 hashX)
public void setEd25519SignedPayload(SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload)
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