public class PublicKeyByteSerializer extends Object implements ByteSerializer<PublicKey>
| Constructor and Description |
|---|
PublicKeyByteSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Class<PublicKey> |
getType()
Obtains the type of the source to be serialized.
|
byte[] |
toBytes(PublicKey source)
Converts an object to a byte array.
|
public byte[] toBytes(PublicKey source)
ByteSerializertoBytes in interface ByteSerializer<PublicKey>source - the source object to convert to bytespublic Class<PublicKey> getType()
ByteSerializergetType in interface ByteSerializer<PublicKey>Copyright © 2021. All rights reserved.