Class StringUtils

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

public class StringUtils
extends java.lang.Object
Utility methods for Strings.
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String bytesToHex​(byte[] byteArray)
    Helper method that convert byte array into string for logging
    static java.lang.String bytesToHex​(byte[] byteArray, int offset, int size)
    Helper method that convert byte array into string for logging

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bytesToHex

      public static java.lang.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 java.lang.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