Package org.stellar.sdk.xdr
Class SignerKey
java.lang.Object
org.stellar.sdk.xdr.SignerKey
SignerKey's original definition in the XDR file is:
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; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
SignerKeyEd25519SignedPayload's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionSignerKey
(SignerKeyType discriminant, Uint256 ed25519, Uint256 preAuthTx, Uint256 hashX, SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload) -
Method Summary
Modifier and TypeMethodDescriptionstatic SignerKey.SignerKeyBuilder
builder()
static SignerKey
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SignerKey
fromXdrBase64
(String xdr) static SignerKey
fromXdrByteArray
(byte[] xdr) getHashX()
int
hashCode()
void
setDiscriminant
(SignerKeyType discriminant) void
setEd25519
(Uint256 ed25519) void
setEd25519SignedPayload
(SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload) void
void
setPreAuthTx
(Uint256 preAuthTx) toString()
default String
default byte[]
-
Constructor Details
-
SignerKey
public SignerKey() -
SignerKey
public SignerKey(SignerKeyType discriminant, Uint256 ed25519, Uint256 preAuthTx, Uint256 hashX, SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getEd25519
-
getPreAuthTx
-
getHashX
-
getEd25519SignedPayload
-
setDiscriminant
-
setEd25519
-
setPreAuthTx
-
setHashX
-
setEd25519SignedPayload
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-