public class PGPWordListConverter extends Object
| Constructor and Description |
|---|
PGPWordListConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEvenWordForHexValue(String hexString)
Retrieve the even PGP word for the given hexadecimal value.
|
String |
getHexValueForPGPWord(String pgpWord)
Retrieve the hexadecimal value associated with the provided PGP Word.
|
String |
getOddWordForHexValue(String hexString)
Retrieve the odd PGP word for the given hexadecimal value.
|
public String getEvenWordForHexValue(String hexString) throws InvalidHexValueException
hexString - String representation of hexadecimal value (should NOT include a leading '0x'InvalidHexValueException - If provided hex value is not validpublic String getOddWordForHexValue(String hexString) throws InvalidHexValueException
hexString - String representation of hexadecimal value (should NOT include a leading '0x'InvalidHexValueException - If provided hex value is not validpublic String getHexValueForPGPWord(String pgpWord) throws InvalidPGPWordException
pgpWord - PGP Word to get hex value forInvalidPGPWordException - If word is not valid/recognisedCopyright © 2016. All rights reserved.