code: static boolean isCOctetStringValid(String value, int maxLength) {
          if (value == null)
              return true;
          if (value.length() >= maxLength)
              return false;
          return true;
  
      }
docs: Validate the C-Octet String.
  
  @param value
  @param maxLength
  @return