io.quarkus.vault.runtime.StringHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-vault-model Show documentation
Show all versions of quarkus-vault-model Show documentation
Hashicorp Vault API model classes
The newest version!
package io.quarkus.vault.runtime;
import static java.nio.charset.StandardCharsets.UTF_8;
public class StringHelper {
public static byte[] stringToBytes(String s) {
return s == null ? null : s.getBytes(UTF_8);
}
public static String bytesToString(byte[] bytes) {
return bytes == null ? null : new String(bytes, UTF_8);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy