Package com.casper.sdk.model.key
Class NamedKeyKey
- java.lang.Object
-
- com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex<KeyTag>
-
- com.casper.sdk.model.key.Key
-
- com.casper.sdk.model.key.NamedKeyKey
-
- All Implemented Interfaces:
CasperSerializableObject,SerializableObject
public class NamedKeyKey extends Key
The key for a named key.
-
-
Constructor Summary
Constructors Constructor Description NamedKeyKey()NamedKeyKey(AddressableEntityKey baseAddr, byte[] stringBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeserializeCustom(DeserializerBuffer deser)protected voidfromStringCustom(java.lang.String strKey)AddressableEntityKeygetBaseAddr()The address of the entity.byte[]getStringBytes()The bytes of the name.voidsetBaseAddr(AddressableEntityKey baseAddr)The address of the entity.voidsetStringBytes(byte[] stringBytes)The bytes of the name.java.lang.StringtoString()-
Methods inherited from class com.casper.sdk.model.key.Key
canEqual, create, deserialize, equals, fromTaggedHexString, generateAccountHash, hashCode
-
Methods inherited from class com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex
getAlgoTaggedHex, getKey, getTag, serialize, setKey, setTag
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
NamedKeyKey
public NamedKeyKey(AddressableEntityKey baseAddr, byte[] stringBytes)
-
NamedKeyKey
public NamedKeyKey()
-
-
Method Detail
-
fromStringCustom
protected void fromStringCustom(java.lang.String strKey)
- Overrides:
fromStringCustomin classKey
-
deserializeCustom
protected void deserializeCustom(DeserializerBuffer deser) throws java.lang.Exception
- Overrides:
deserializeCustomin classKey- Throws:
java.lang.Exception
-
getBaseAddr
public AddressableEntityKey getBaseAddr()
The address of the entity.
-
getStringBytes
public byte[] getStringBytes()
The bytes of the name.
-
setBaseAddr
public void setBaseAddr(AddressableEntityKey baseAddr)
The address of the entity.
-
setStringBytes
public void setStringBytes(byte[] stringBytes)
The bytes of the name.
-
-