public class PKCS11UTIL extends 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 UnsupportedEncodingException
charArray - char array to be encodedUnsupportedEncodingException - if UTF8 encoding is not supportedpublic static char[] utf8Decoder(byte[] byteArray)
throws UnsupportedEncodingException
byteArray - the UTF8 encodingUnsupportedEncodingException - if UTF8 encoding is not supportedCopyright © 2023. All rights reserved.