Package org.stellar.sdk.xdr
Class HmacSha256Key
java.lang.Object
org.stellar.sdk.xdr.HmacSha256Key
- All Implemented Interfaces:
XdrElement
HmacSha256Key's original definition in the XDR file is:
struct HmacSha256Key
{
opaque key[32];
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static HmacSha256Keydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic HmacSha256KeyfromXdrBase64(String xdr) static HmacSha256KeyfromXdrByteArray(byte[] xdr) byte[]getKey()inthashCode()voidsetKey(byte[] key) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
HmacSha256Key
public HmacSha256Key() -
HmacSha256Key
public HmacSha256Key(byte[] key)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getKey
public byte[] getKey() -
setKey
public void setKey(byte[] key) -
equals
-
hashCode
public int hashCode() -
toString
-