public class ByteArrayKeyEncoder extends KeyEncoder<byte[]>
ByteArrayKeyEncoder
is an implementation of a KeyEncoder
for Byte[]
keys compatible with the SOSS-JNC API.Constructor and Description |
---|
ByteArrayKeyEncoder()
Constructs a
KeyEncoder implementation for byte[] keys. |
Modifier and Type | Method and Description |
---|---|
KeyEncodingResult |
encode(byte[] key)
Encodes the byte[] key.
|
byte[] |
fromBytes(byte[] keyAsBytes)
Returns the original byte[] key.
|
public ByteArrayKeyEncoder()
KeyEncoder
implementation for byte[] keys.public byte[] fromBytes(byte[] keyAsBytes)
fromBytes
in class KeyEncoder<byte[]>
keyAsBytes
- the 32 byte encoded key.public KeyEncodingResult encode(byte[] key)
encode
in class KeyEncoder<byte[]>
key
- the byte[]
key.KeyEncodingResult
.