IAIK PKCS#11 Wrapper
version 1.5

iaik.pkcs.pkcs11.wrapper
Class PKCS11UTIL

java.lang.Object
  |
  +--iaik.pkcs.pkcs11.wrapper.PKCS11UTIL

public class PKCS11UTIL
extends java.lang.Object


Constructor Summary
PKCS11UTIL()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS11UTIL

public PKCS11UTIL()
Method Detail

utf8Encoder

public static byte[] utf8Encoder(char[] charArray)
                          throws java.io.UnsupportedEncodingException
encodes the given charArray as UTF8 encoded byte array.
Parameters:
charArray - char array to be encoded
Returns:
UTF8 encoded byte array
Throws:
java.io.UnsupportedEncodingException - if UTF8 encoding is not supported

utf8Decoder

public static char[] utf8Decoder(byte[] byteArray)
                          throws java.io.UnsupportedEncodingException
decodes the given UTF8 Encoding to a char array.
Parameters:
byteArray - the UTF8 encoding
Returns:
the char array
Throws:
java.io.UnsupportedEncodingException - if UTF8 encoding is not supported

IAIK PKCS#11 Wrapper
version 1.5

IAIK JavaSecurity Website http://jce.iaik.tugraz.at/

IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2004, IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.
version 1.5