Package org.stellar.sdk.xdr
Class PublicKey
java.lang.Object
org.stellar.sdk.xdr.PublicKey
- All Implemented Interfaces:
XdrElement
PublicKey's original definition in the XDR file is:
union PublicKey switch (PublicKeyType type)
{
case PUBLIC_KEY_TYPE_ED25519:
uint256 ed25519;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKey.PublicKeyBuilderbuilder()static PublicKeydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PublicKeyfromXdrBase64(String xdr) static PublicKeyfromXdrByteArray(byte[] xdr) inthashCode()voidsetDiscriminant(PublicKeyType discriminant) voidsetEd25519(Uint256 ed25519) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PublicKey
public PublicKey() -
PublicKey
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getEd25519
-
setDiscriminant
-
setEd25519
-
equals
-
hashCode
public int hashCode() -
toString
-