public class KeyEncodingResult
extends java.lang.Object
KeyEncodingResult
returned by an implementation of KeyEncoder.encode(Object)
Constructor and Description |
---|
KeyEncodingResult(byte[] keyBytes)
Creates a KeyEncodingResult with the encoded key
|
KeyEncodingResult(byte[] keyBytes,
byte[] encodedKeyString)
Create a KeyEncodingResult with the key bytes and an encoded key string.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encodedKeyString()
Retrieve the encoded key string (if it exists).
|
byte[] |
keyBytes()
Retrieve the encoded key bytes.
|
public KeyEncodingResult(byte[] keyBytes)
keyBytes
- the encoded keypublic KeyEncodingResult(byte[] keyBytes, byte[] encodedKeyString)
keyBytes
- the encoded keyencodedKeyString
- the key stringpublic byte[] encodedKeyString()
public byte[] keyBytes()