Class KeyIdentifierConverter

java.lang.Object
org.apache.nifi.pgp.service.api.KeyIdentifierConverter

public class KeyIdentifierConverter extends Object
Key Identifier Converter from number to hexadecimal string
  • Field Details

  • Constructor Details

    • KeyIdentifierConverter

      public KeyIdentifierConverter()
  • Method Details

    • format

      public static String format(long keyId)
      Format numeric key identifier as uppercase hexadecimal string
      Parameters:
      keyId - Key Identifier
      Returns:
      Uppercase hexadecimal string
    • parse

      public static long parse(String keyId)
      Parse hexadecimal key identifier to numeric key identifier
      Parameters:
      keyId - Hexadecimal string
      Returns:
      Key Identifier