All Downloads are FREE. Search and download functionalities are using the official Maven repository.

utils.com.unbound.common.STR Maven / Gradle / Ivy

Go to download

This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi

There is a newer version: 42761
Show newest version
package com.unbound.common;

import java.nio.charset.StandardCharsets;

public final class STR
{
  public static byte[] utf8(String in)
  {
    return in.getBytes(StandardCharsets.UTF_8);
  }

  public static String utf8(byte[] in)
  {
    return new String(in, StandardCharsets.UTF_8);
  }

  public static boolean nullOrEmpty(String in) { return in==null || in.isEmpty(); }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy