Class SignedPayloadSigner

java.lang.Object
org.stellar.sdk.SignedPayloadSigner

public class SignedPayloadSigner extends Object
Data model for the signed payload signer
  • Field Details

    • SIGNED_PAYLOAD_MAX_PAYLOAD_LENGTH

      public static final int SIGNED_PAYLOAD_MAX_PAYLOAD_LENGTH
      The maximum length of a signed payload
      See Also:
  • Constructor Details

    • SignedPayloadSigner

      public SignedPayloadSigner(@NonNull @NonNull AccountID signerAccountId, byte @NonNull [] payload)
      constructor
      Parameters:
      signerAccountId - - the xdr AccountID
      payload - - the raw payload for a signed payload
    • SignedPayloadSigner

      public SignedPayloadSigner(byte[] signerED25519PublicKey, byte[] payload)
      constructor
      Parameters:
      signerED25519PublicKey - raw bytes of a ED25519 public key for the signer account
      payload - the raw payload for a signed payload
  • Method Details

    • getSignerAccountId

      public AccountID getSignerAccountId()
      The account that represents the signed payload signer
    • getPayload

      public byte[] getPayload()
      The payload that signatures are produced from
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object