public class PublicKey extends java.lang.Object implements XdrElement
union PublicKey switch (PublicKeyType type) { case PUBLIC_KEY_TYPE_ED25519: uint256 ed25519; };
Modifier and Type | Class and Description |
---|---|
static class |
PublicKey.PublicKeyBuilder |
Constructor and Description |
---|
PublicKey() |
PublicKey(PublicKeyType discriminant,
Uint256 ed25519) |
Modifier and Type | Method and Description |
---|---|
static PublicKey.PublicKeyBuilder |
builder() |
static PublicKey |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static PublicKey |
fromXdrBase64(java.lang.String xdr) |
static PublicKey |
fromXdrByteArray(byte[] xdr) |
PublicKeyType |
getDiscriminant() |
Uint256 |
getEd25519() |
int |
hashCode() |
void |
setDiscriminant(PublicKeyType discriminant) |
void |
setEd25519(Uint256 ed25519) |
PublicKey.PublicKeyBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public PublicKey()
public PublicKey(PublicKeyType discriminant, Uint256 ed25519)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static PublicKey decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static PublicKey fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static PublicKey fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static PublicKey.PublicKeyBuilder builder()
public PublicKey.PublicKeyBuilder toBuilder()
public PublicKeyType getDiscriminant()
public Uint256 getEd25519()
public void setDiscriminant(PublicKeyType discriminant)
public void setEd25519(Uint256 ed25519)
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