Class StringUtils

java.lang.Object
com.yubico.yubikit.core.util.StringUtils

public class StringUtils extends Object
Utility methods for Strings.
  • Method Details

    • bytesToHex

      public static String bytesToHex(byte[] byteArray)
      Helper method that convert byte array into string for logging
      Parameters:
      byteArray - array of bytes
      Returns:
      string representation of byte array
    • bytesToHex

      public static String bytesToHex(byte[] byteArray, int offset, int size)
      Helper method that convert byte array into string for logging
      Parameters:
      byteArray - array of bytes
      offset - the offset within byteArray
      size - the size of array
      Returns:
      string representation of byte array