Package org.stellar.sdk.xdr
Class HmacSha256Key
java.lang.Object
org.stellar.sdk.xdr.HmacSha256Key
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()default Stringdefault byte[]
-
Constructor Details
-
HmacSha256Key
public HmacSha256Key() -
HmacSha256Key
public HmacSha256Key(byte[] key)
-
-
Method Details
-
encode
- 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
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-