public class PKCS11UTIL
extends java.lang.Object
Constructor and Description |
---|
PKCS11UTIL() |
Modifier and Type | Method and Description |
---|---|
static char[] |
utf8Decoder(byte[] byteArray)
decodes the given UTF8 Encoding to a char array.
|
static byte[] |
utf8Encoder(char[] charArray)
encodes the given charArray as UTF8 encoded byte array.
|
public static byte[] utf8Encoder(char[] charArray) throws java.io.UnsupportedEncodingException
charArray
- char array to be encodedjava.io.UnsupportedEncodingException
- if UTF8 encoding is not supportedpublic static char[] utf8Decoder(byte[] byteArray) throws java.io.UnsupportedEncodingException
byteArray
- the UTF8 encodingjava.io.UnsupportedEncodingException
- if UTF8 encoding is not supportedIAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9